Status is GATT_FAILURE in onConnectionStateChange after many reconnections

Viewed 3102

I'm connecting to ble device by:

 mBluetoothGatt = device.connectGatt(this.context, false, mGattCallback);

and than

 mBluetoothGatt.disconnect();

but if I'm doing it quickly then I receive status=BluetoothGatt.GATT_FAILURE in onConnectionStateChange of mGattCallback

and then I can't connect to GATT again, even if turn off/turn on Bluetooth.

Only Force Stop of the app can solve the problem

1 Answers
Related