adding beacon to BLE LED/Button service

good day,

is it possible to add beacon to bled led/button example. If the device is not connected and the button is pressed, we would like it to start broadcasting as beacon.

but if the device is paired/connected, it would be like the normal ble led/button behavior where it is going to send 1 if button is pressed.

using pca10040 with sdk 17.1

Parents
  • Hi xtian,

    Yes, this is possible. You can just modify the options in the button_event_handler() or its equivalent in the example you are working on.

    However, for most of our examples, I believe the application's behavior is to start advertising when the device is disconnected. What kind of advertisement do you want to broadcast?

    Hieu

Reply
  • Hi xtian,

    Yes, this is possible. You can just modify the options in the button_event_handler() or its equivalent in the example you are working on.

    However, for most of our examples, I believe the application's behavior is to start advertising when the device is disconnected. What kind of advertisement do you want to broadcast?

    Hieu

Children
Related