Hi how to power off the ble after one advertising event ? i.e i want to stop advertising after one advertising event!
Hi how to power off the ble after one advertising event ? i.e i want to stop advertising after one advertising event!
Post the code on pastebin.com or something, it's just a mess without formatting in comments. I see you calling app_timer_start and then immediately sd_ble_gap_adv_stop. It's wrong, you need to call sd_ble_gap_adv_stop in the timer timeout handler. app_timer_start function is just starting the timer and don't wait until the timer will expire.
sorry for the way i posted the code nikitha ! i will try and reply asap.
In SDK 15, if you are using a template derived project, you should use the following statement with the parameter to stop advertising:
sd_ble_gap_adv_stop(m_advertising.adv_handle);