Forcing disconnection of a BLE device connected to an Android application starts onConnectionStateChange with a status of 8

I have an Android app that uses the BLE API to connect to a BLE device. If I connect to the device, and then turn off the power of the device after a few seconds, I will get this line in the logarithm:

11-15 12:33:07.977 27829-27847/com.mycompany.platform.hellodev D/BluetoothGatt: onClientConnectionState() - status=8 clientIf=6 device=55:1C:6C:86:8A:F8

which then calls our BluetoothGattCallbackcallback onConnectionStateChangewith status=8andnewStatus=0

I can not find public documentation that says what it means status=8.

Is it possible to assume that if newStatus=0transmitted, then the BLE device has turned off?

+4
source share
1 answer

, , = 8.

, (LINK_LOSS) - .

, newStatus = 0, , BLE ?

, newStatus 0, CONNECTION idle, .

+8

Source: https://habr.com/ru/post/1615949/


All Articles