This application transmits a heart rate value using the Bluetooth SIG Heart Rate Profile. The heart rate value is provided by the application itself, not by a sensor, so that you don't have to get a sensor just to run the example. The canonical source for this example lives at

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


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