成功连接后多次调用onClientConnectionState

时间:2019-05-06 20:09:19

标签: android connection bluetooth-lowenergy gatt

我正在连接BLE设备,并收到两个具有相同状态的相同onClientConnectionState()调用。这应该打多次还是我做错了什么?这里的日志:

05-06 22:48:31.778 I/BluetoothDevice(17325): createBond() for device D5:...:EA called by pid: 17325 tid: 17360
05-06 22:48:31.813 D/BluetoothGatt(17325): connect() - device: D5:...:EA, auto: false
05-06 22:48:31.814 D/BluetoothGatt(17325): registerApp()
05-06 22:48:31.814 D/BluetoothGatt(17325): registerApp() - UUID=ffbf338d-8200-45f8-83b3-79d71ac40ffd
05-06 22:48:31.816 D/BluetoothGatt(17325): onClientRegistered() - status=0 clientIf=7
05-06 22:48:31.820 D/BluetoothGatt(17325): onClientConnectionState() - status=0 clientIf=7 device=D5:...:EA
Thread started:  #7
05-06 22:48:31.835 D/BluetoothGatt(17325): onClientConnectionState() - status=0 clientIf=7 device=D5:...:EA
Thread started:  #8

0 个答案:

没有答案