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 ????
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.
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.