Hi Sir,
How we can stop the adv of beacon. i tried with sd_ble_gap_adv_stop(m_adv_handle); its not working can you suggest correct api.
Thanks
Madhu
Hi Sir,
How we can stop the adv of beacon. i tried with sd_ble_gap_adv_stop(m_adv_handle); its not working can you suggest correct api.
Thanks
Madhu
Hi,
I am sorry for the delayed answer over the holidays.
sd_ble_gap_adv_stop() is an API call for the SoftDevice, but if the project is based on an nRF5 SDK example then it is probably not using the SoftDevice directly. Rather it uses the Advertising Module, which has its own API for controlling the advertising. Therefore it may be necessary to put the advertising module in the correct state as well. Have you tried calling ble_advertising_start() with BLE_ADV_MODE_IDLE as the advertising_mode parameter?
If you let me know what exact example you are using then I can have a closer look. Also, if you have modified the example, please provide the modified code.
Regards,
Terje
Hi,
I am sorry for the delayed answer over the holidays.
sd_ble_gap_adv_stop() is an API call for the SoftDevice, but if the project is based on an nRF5 SDK example then it is probably not using the SoftDevice directly. Rather it uses the Advertising Module, which has its own API for controlling the advertising. Therefore it may be necessary to put the advertising module in the correct state as well. Have you tried calling ble_advertising_start() with BLE_ADV_MODE_IDLE as the advertising_mode parameter?
If you let me know what exact example you are using then I can have a closer look. Also, if you have modified the example, please provide the modified code.
Regards,
Terje