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

Change beacon Minor Value

This suggests it should be possible to change the beacon advertising content in response to events such as a GPIO input. I'm using nrf52 DK running the beacon example (SDK 12.2.0) which I've modified slightly so that GPIO inputs trigger a 20 second advertising burst. I want to be able to change the Minor Value so that a mobile app can distinguish which GPIO input triggered the advertisement.

I'd appreciate some guidance on how to approach this and if possible links to example code etc.

Parents Reply
  • I'm using the beacon kit nRF51822 and want to do the same ninoq asked. But i don't understand his solution (maybe it's because i'm new in programing Nordic products). I know that the array entries [20] and [21] are for the MINOR values and I know what advertising_init() and -start() are for, but:

    1. I have no m_beacon_info in the example (ble_app_beacon), so where do I have to change the value?
    2. can I call the -init() and -start() in the main-loop?
Children
No Data
Related