BLE_Button is a BLE service template. It handles a read-only characteristic with a simple input (boolean values). The input's source is the button on the board itself - the characteristic's value changes when the button is pressed or released. The canonical source for this example lives at https://github.com/ARMmbed/mbed-os-example-ble/tree/master/BLE_Button

Auto generated API documentation and code listings for mbed-os-example-ble-Button

Code

ButtonService.h [code]
main.cpp [code]
pretty_printer.h [code]