AnsweredAssumed Answered

How do I detect a QN9080 connection loss?

Question asked by Rick Dickerson on Dec 2, 2019
Latest reply on Dec 4, 2019 by Estephania Martinez

I am using a custom BLE app on Android and iOS to connect to my QN9080. As expected, when I gracefully close the connection from my app, I get the gConnEvtDisconnected_c event in my connection callback function. However, there are times when the phone moves away from my device and I get a connection loss and I do not get the gConnEvtDisconnected_c event in my connection callback function. The result is that I don't know that the phone has disconnected so I permanently stay in a connected state. Is it expected that I would not get the gConnEvtDisconnected_c event when I unexpectedly lose the connection? If so, what is the best way to detect that situation?

 

I have noticed that when I have the unexpected connection loss, I get a gTxEntryAvailable_c event in my generic callback function. I do not get that even when I gracefully close the connection. Other than the comment where the enum is defined, there isn't any documentation on gTxEntryAvailable_c. Can someone explain what that is and tell me if it is a reliable predictor of a non-graceful connection loss? 

Outcomes