(BluetoothGatt gatt,
int status, int newState)
| 222 | } |
| 223 | |
| 224 | @Override |
| 225 | public void onConnectionStateChange(BluetoothGatt gatt, |
| 226 | int status, int newState) { |
| 227 | if (BluetoothProfile.STATE_CONNECTED == newState) { |
| 228 | if (!gatt.discoverServices()) { |
| 229 | submitError("Discovering GATT services request failed"); |
| 230 | } |
| 231 | } else { |
| 232 | submitError("GATT disconnected"); |
| 233 | } |
| 234 | } |
| 235 | |
| 236 | @Override |
| 237 | public void onDescriptorWrite(BluetoothGatt gatt, |
nothing calls this directly
no test coverage detected