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!
Thankyou guys ! i tried with advertising start den some delay of 4 ms (using nrf_delay_us()) den power off (sleep ) !.now i can see the current waveform with one advertising ! now i have to try whether master control panel can detect my device or not !!
note: is it right using nrf_delay instead of setting a timer ????
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.
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.