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

How can I change UUID or Major/Minor numbers once a GPIO is toggled? i.e. dynamically during normal advertisement. Is there any example in the SDK?

Once GPIO is pressed (shorted to ground), I want to change the value of UUID or Major/Minor number

If not, the device will continue to advertise the previous values 

Parents
  • Hello,

    You will need to detect the button press. You will find examples doing this. E.g. the examples found in:

    SDK\examples\peripheral\pin_change_int

    SDK\examples\peripheral\bsp

     

    Then you need to change the advertising data. You can do this by using the sequence: Stop advertising -> advertising_init (with your new advertising data) --> start advertising

     

    Unfortunately, we do not have any examples doing exactly this at this point in time.

     

    Best regards,

    Edvin

Reply
  • Hello,

    You will need to detect the button press. You will find examples doing this. E.g. the examples found in:

    SDK\examples\peripheral\pin_change_int

    SDK\examples\peripheral\bsp

     

    Then you need to change the advertising data. You can do this by using the sequence: Stop advertising -> advertising_init (with your new advertising data) --> start advertising

     

    Unfortunately, we do not have any examples doing exactly this at this point in time.

     

    Best regards,

    Edvin

Children
Related