我的应用程序能够成功连接到 BLE 外围设备(这是一个 OBDII/J1939 设备)设备。
2018-01-24 14:58:38,413 INFO LogUtil - GATT Server Status = (0) : BLE_HCI_STATUS_CODE_SUCCESS(0x00)
2018-01-24 14:58:38,414 INFO LogUtil - GATT Server New State = (2) : STATE_CONNECTED
2018-01-24 14:58:38,414 INFO LogUtil - Connected to GATT server.
应用程序开始与设备通信,但一段时间后它onConnectionStateChange
在回调实现中收到 GATT 服务器断开消息BluetoothGattCallback
。以下是来自应用程序的日志:
2018-01-24 15:07:46,396 INFO LogUtil - GATT Server Status = (40) : BLE_HCI_INSTANT_PASSED(0x28)
2018-01-24 15:07:46,397 INFO LogUtil - GATT Server New State = (0) : STATE_DISCONNECTED
2018-01-24 15:07:46,398 INFO LogUtil - Disconnected from GATT server.
无法找到BLE_HCI_INSTANT_PASSED
状态码背后的任何原因。
对此的任何帮助都会有所帮助。