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

How to trigger an action when radio is connected / disconnected

Hi,

I'm designing an application using SEGGER Studio for the nRF52832. I have based my application on the template peripheral example.

What I want to do is to trigger actions when the BLE is connected and disconnected.

I figured out I cannot do what I want inside the ble_evt_handler. I suppose this has to finish as fast as possible. But then how to do it?

I would actually do it using some flag variables for synchronization. But is this the best way to do it?

Best,
Nikos

Parents Reply Children
No Data
Related