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!
Thankyu ! wats the difference in using delay_us & timers ?? which one is efficient & why ??
In your case if you use nrf_delay_us(4000) the actual delay can be more then 4ms because nrf_delay_us() can be interrupted and interrupt handling may take a few more ms to your delay. But with timer it will be exactly 4ms because timer operation won't be interrupted. You can read this electronics.stackexchange.com/.../software-delay-vs-hardware-timers or google for more info.
Got it !! Thankyou :) !
how to do three advertising and stop ?? i tried with loop iterations but its not working !!!
You mean 3 advertising events? How about to set timer for 3.5*(advertising interval), start timer after sd_ble_gap_adv_start and after the timer expires you call sd_ble_gap_adv_stop?