Beware that this post is related to an SDK in maintenance mode
More Info: Consider nRF Connect SDK for new designs

How to switch from connectable mode to beacon mode after disconnection

Currently I have been able to advertise and connect through debug app using nRF52 DK. My target is:

1. After the link is lost the bluetooth gets disconnected and at this time I want the DK to advertise in the beacon mode.

2. My purpose is that when some one with the app comes near I can send him the advertisement and the lost user can track the item.

How to implement this switch from connectable mode to beacon mode after disconnection

Parents Reply
  • I have tried implementing what you have suggested, but after disconnection it stops advertising rather than going to beacon advertising mode. I have added an advertising_beacon_init function and advertising_beacon_start function. Inside the BLE_GAP_EVT_DISCONNECTED I called the advertising_beacon_start function to start beacon mode. Is this the right way to proceed or is there anything I need to do extra.

Children
Related