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

app_beacon Adapt Advertising value each wakeup

I am trying to change the app beacon example so that i can adapt the beacons value each time it advertises.

I am a bit confused as there is no callback function called when the beacon advertises. How can I have a callback where I can change the beacons value? I guess it would be better to sleep with the RTC and configure ble each time when time runs out?

Thanks for your help!

Parents
  • FormerMember
    0 FormerMember

    Yes, your understanding is correct. When starting advertising, the device will advertise continuously with the set advertising interval. No event is generated each time the device is advertising.

    Yes, if you want to change the advertising data at a given interval, you can use a timer (an RTC timer for instance) to monitor the change of advertising data.

Reply
  • FormerMember
    0 FormerMember

    Yes, your understanding is correct. When starting advertising, the device will advertise continuously with the set advertising interval. No event is generated each time the device is advertising.

    Yes, if you want to change the advertising data at a given interval, you can use a timer (an RTC timer for instance) to monitor the change of advertising data.

Children
No Data
Related