This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Restart Advertising

I would like my device to advertise for 10s and then begin advertising again only on an external interrupt.

What steps are required to restart advertising without restarting the device after a timeout event has occurred?

Parents
  • Hi polarstate, i can't guarantee that this is 100% correct way to do this, but when i have to do tasks similiar to yours, i just call advertising_start() function and it starts advertising. Usually, every time i want to advertise different data, so to update advertisement data i just call advertise_init() function and then start advertising by calling advertising_start();

    Hope This helps.

Reply
  • Hi polarstate, i can't guarantee that this is 100% correct way to do this, but when i have to do tasks similiar to yours, i just call advertising_start() function and it starts advertising. Usually, every time i want to advertise different data, so to update advertisement data i just call advertise_init() function and then start advertising by calling advertising_start();

    Hope This helps.

Children
No Data
Related