2024-08-29 17:32:37 +02:00
|
|
|
.. zephyr:code-sample:: ble_central_hr
|
|
|
|
:name: Heart-rate Monitor (Central)
|
|
|
|
:relevant-api: bluetooth
|
2017-01-19 20:42:36 -05:00
|
|
|
|
2024-08-29 17:32:37 +02:00
|
|
|
Connect to a BLE heart-rate monitor and read heart-rate measurements.
|
2017-01-19 20:42:36 -05:00
|
|
|
|
|
|
|
Overview
|
|
|
|
********
|
|
|
|
|
2024-08-29 17:32:37 +02:00
|
|
|
Similar to the :zephyr:code-sample:`ble_central` sample, except that this
|
2017-01-19 20:42:36 -05:00
|
|
|
application specifically looks for heart-rate monitors and reports the
|
|
|
|
heart-rate readings once connected.
|
|
|
|
|
|
|
|
Requirements
|
|
|
|
************
|
|
|
|
|
|
|
|
* BlueZ running on the host, or
|
|
|
|
* A board with BLE support
|
|
|
|
|
|
|
|
Building and Running
|
|
|
|
********************
|
|
|
|
|
2019-03-08 14:21:37 -08:00
|
|
|
This sample can be found under :zephyr_file:`samples/bluetooth/central_hr` in the
|
2017-01-26 11:23:42 -05:00
|
|
|
Zephyr tree.
|
|
|
|
|
2019-03-07 15:59:20 +01:00
|
|
|
See :ref:`bluetooth samples section <bluetooth-samples>` for details.
|