Skip to content Skip to sidebar Skip to footer

Android Ble Acl_disconnected Sometimes Delayed

I am developing an Android app (API 23+) that communicates via BLE with a device. There is no pairing / bonding involved. The happy path of the interaction is that the app connect

Solution 1:

If the BLE devices stops broadcasting instead of sending disconnect signal this issue happens. If the BLE device didn't send the disconnect signal Android device thinks the that the connection is open and it waits for sometime (5-20 sec) and then calls onconnectionstatechange() with time out status code. If you can make the BLE device send the disconnect signal instead of stop broadcasting it should fix the issues. Hope this helps


Post a Comment for "Android Ble Acl_disconnected Sometimes Delayed"