9dde7219a6
Fix up the heart rate example so that it conforms to the Heart Rate Service specification: https://www.bluetooth.org/docman/handlers/downloaddoc.ashx?doc_id=239866 This will let this example work with external clients like exercise equipment and fitness apps. Changes: - Advertise the HR service UUID instead of the HRM characteristic UUID. - Change HRM characteristic to notify only. - HRM payload needs to be two bytes: - 1st byte is flags specifying data type and sensor capabilities: this can be set to zero. - 2nd byte is HR measurement in bpm. Tested on Raspberry Pi with nRF Connect app and exercise bike. Peripheral shows up as HR monitor and data is interpreted correctly. |
||
---|---|---|
.. | ||
advertisement | ||
circuitplay | ||
discover | ||
heartrate | ||
heartrate-monitor | ||
ledcolor | ||
nusclient | ||
nusserver | ||
scanner |