This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

how to control BLE connection of nRF52832

I want to know how to control BLE connection of nRF52832.
I am using softdevice S132. I have a device that works centrally and a device that runs peripherals.
When the peripheral device is turned off while the connection between the two devices is established, the disconnect event is called on the central device as soon as the supervision timeout expires.
However, when the peripheral power is turned on again immediately before the supervision timeout expires, the central side calls the connect event first, and the disconnect event is called during the process. This may cause the connection to fail.

I am thinking about measures to avoid these cases.
For example, is it appropriate to perform exclusive processing that does not accept connect events until the disconnect event processing ends.
Or is it better to control only the flags in the connect and disconnect events and control the rest with the mainloop?
If you have any helpful documents or ideas, please let me know.
Parents Reply Children
No Data
Related