连接蓝牙LE

时间:2016-07-12 05:58:10

标签: android connection bluetooth-lowenergy gatt

我的蓝牙gatt连接工作正常,但在我通过以下一行后突然间:

mConnectedGATT = device.connectGatt(com.wicom.bluetoothgatt.MainActivity.this, true, mGattCallback);

调用OnConnectionStateChanged事件6,7次是否意味着物理设备出现问题?

我正在为参考enter image description here

添加logcat快照

1 个答案:

答案 0 :(得分:0)

一旦你将autoConnect设置为true,或者调用gatt.connect(),如果连接断开,它将自动重新连接到设备,无论是丢失连接还是因为外围设备主动断开连接。