I'm a bit at a loss of how to voluntarily stop advertising:
My related thread says I should call sd_ble_gap_adv_stop()
, but when I do, no corresponding event is raised by the soft-device. This ultimately means that on_adv_evt()
in main.c does not get called, the static m_adv_mode_current
in ble_advertising.c does not change state to BLE_ADV_MODE_IDLE
, and the ble_advertising module in an unmatching state.
How can I overcome this? Is the only way to reliably stop advertising is to wait for it to time-out?
Version: nRF5 SDK 11.0.0, s132, with PCA10040 EVB