【发布时间】:2016-06-26 09:40:15
【问题描述】:
我通过以下方式连接到 ble 设备:
mBluetoothGatt = device.connectGatt(this.context, false, mGattCallback);
比
mBluetoothGatt.disconnect();
但如果我做得很快,那么我会在 onConnectionStateChange 的 mGattCallback 中收到 status=BluetoothGatt.GATT_FAILURE
然后我无法再次连接到 GATT,即使关闭/打开蓝牙也是如此。
只有应用强制停止才能解决问题
【问题讨论】:
标签: android bluetooth bluetooth-lowenergy gatt