bluetooth/examples
Michael Mogenson 9dde7219a6
Fix up heart rate example
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.
2020-12-10 10:50:00 -05:00
..
advertisement domain: use custom domain for go.mod and examples 2020-09-09 16:04:40 +02:00
circuitplay gap: add connection handler to be called on adapter connect/disconnect 2020-09-10 17:17:45 +02:00
discover gattc/*: DeviceCharacteristic Read() implementation 2020-10-22 19:04:47 +02:00
heartrate Fix up heart rate example 2020-12-10 10:50:00 -05:00
heartrate-monitor examples: extend HRS to perform notifications, add heartrate-monitor example that shows notifications 2020-09-17 17:17:18 +02:00
ledcolor domain: use custom domain for go.mod and examples 2020-09-09 16:04:40 +02:00
nusclient domain: use custom domain for go.mod and examples 2020-09-09 16:04:40 +02:00
nusserver domain: use custom domain for go.mod and examples 2020-09-09 16:04:40 +02:00
scanner domain: use custom domain for go.mod and examples 2020-09-09 16:04:40 +02:00