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