cancel
Showing results for 
Search instead for 
Did you mean: 

BlueNRG-M0A: How to properly detect when Bluetooth device is out of range

KMew
Senior III

Hello,

I am using BlueNRG-M0A and have a successful implementation working. However, I have a scenario that I'm unsure how to properly program.

If I am currently paired to a Bluetooth device (i.e. a phone). The Bluetooth app crashes or the phone goes out of range. Therefore, it never sends a "disconnect" command. My firmware does not recognize that and continues sending data, which causes it to get "stuck" and repeatedly tries to send the data until it times out. 

 

I want to recognize this in a more timely manner, have the firmware "disconnect" from that device that's gone and bring itself back so it is discoverable. 

Does anyone have any suggestions on how to do so?

1 REPLY 1
KMew
Senior III

Bump!