This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Advertising does not stop after calling sd_ble_gap_adv_stop()

I have nRF52 and working with SDK11.

I can start BLE advertising and nRF Connect app will detect everything correctly.

I only have an issue: I want to advertise for 10 seconds and when I call sd_ble_gap_adv_stop() the advertising continue as nRF Connect continues showing my device in the RSSI graph. BLE advertising will stop only when I enter System Off.

I tried setting the advertising timeouts to both 0 (using a timer for stopping after 10 seconds) and 10 seconds. But there is no difference. When I call sd_ble_gap_adv_stop(), the radio module continue transmitting.

Does anyone have a clue about what could the issue be? Thank you.

  • I just did an additional test and nRF Connect seems to have a bug. As soon as the Radio goes into Idle after the advertising timeout, I start scanning with nRF Connect and the additional 5seconds of RSSI do not appear this time. Somehow it takes a while for nRF Connect to understand that the advertising has stop.

Related