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 Reply
  • hi,

    the first one is correct. initially, it will be like the BLE_UART example where it is connectable but we also want it to be like the BLE_APP_BEACON (non-connectable) example when a button is pressed when no devices are connected and it's advertising. and when it is acting as beacon, we want it to be able switch back to BLE_UART (connectable) example if the button is pressed.

Children
Related