MCPcopy Create free account
hub / github.com/XCSoar/XCSoar / onConnectionStateChange

Method onConnectionStateChange

android/src/BluetoothSensor.java:224–234  ·  view source on GitHub ↗
(BluetoothGatt gatt,
                                      int status, int newState)

Source from the content-addressed store, hash-verified

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,

Callers

nothing calls this directly

Calls 1

submitErrorMethod · 0.95

Tested by

no test coverage detected