同样厂商的模块,android 4.4 到6.0 都能正常连接,但是7.0(我的是华为)就链接不上onServicesDiscovered(BluetoothGatt gatt, int status)方法并没有回掉,onConnectionStateChange(BluetoothGatt gatt, int status, int newState) 回掉中 new state先为2后断开链接 变为1,但是又有部分模块又能正常连接。
...全文
4221打赏收藏
请教 android 7.0 蓝牙4.0问题
同样厂商的模块,android 4.4 到6.0 都能正常连接,但是7.0(我的是华为)就链接不上onServicesDiscovered(BluetoothGatt gatt, int status)方法并没有回掉,onConnectionStateChange(BluetoothGatt gatt, int status, int newState) 回掉中 new state先为2后断开链接 变为1,但是又有部分模块又能正常连接。