Random delay before advertising

Hello Everyone,

I would like to implement a random delay of 10 to 3000ms before my development kit start advertising itself.

I'm using nRF5dk v17.1.0. 

How do i go about this?


Regards,

Zachary

Parents Reply
  • Hi Kazi, 

    thanks for sharing the link. 

    I've tried placing the code within 1. timer_init() and setting up a new timeout_handler, 2. within advertising_init(). 3. placing it in the main_init() However, in these cases, no delay happened. 

    I'm actually not very sure where should I placed the one-shot pesudo code. Could you kindly direct me to the location that I need to place it in.

    really appreciate your time for helping me out!

    regards,

    Zachary

Children
Related