Skip to main content
KMew
Senior III
August 17, 2023
Question

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

  • August 17, 2023
  • 1 reply
  • 954 views

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?

This topic has been closed for replies.

1 reply

KMew
KMewAuthor
Senior III
September 5, 2023

Bump!