Dear Sir,
I want to do the following scenario.
Once I power the device it will start advertising.
Now the advertising duration is 2minutes.
I have written a routine based on timer. When it is called it should initiate the advertising again.
How can I restart an advertising sequence once a current advertising going on?.
I tried the following sequence
(void) sd_ble_gap_adv_stop(&m_advertising.adv_handle); advertising_start(erase_bonds);
But it shows the error
WakeUp <error> app: ERROR 8 [NRF_ERROR_INVALID_STATE] at I:\GK\Rigado\sdk\nRF5_SDK_15.0.0_a53641a\examples\ble_peripheral\Sieva_prod1_wologs\main.c:1325
What am I missing in restarting advertising routine?
In function "ble_advertising_restart_without_whitelist()", I think it follows the same sequence.
But I dont know why it is not working for me.
Please shed some light on this.
with regards,
Geetha