zephyr/samples/bluetooth/central_hr
Johan Hedberg 8fc4c99496 Bluetooth: Remove redundant AD parsing check
A few lines earlier the code bails out in case len is 0. Checking for
buf->len < 1 is the same as checking for buf->len == 0. Since len is
guaranteed to be > 0 here the check len > buf->len implicitly checks
for buf->len == 0, i.e. the second test can be removed.

Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
2018-01-31 07:01:10 -08:00
..
src Bluetooth: Remove redundant AD parsing check 2018-01-31 07:01:10 -08:00
CMakeLists.txt cmake: Use -serial bt-server when CONFIG_BT 2017-11-08 20:00:22 -05:00
README.rst doc: update bluetooth samples with pointers 2017-01-26 20:02:35 +00:00
prj.conf Bluetooth: Kconfig: Rename CONFIG_BLUETOOTH_* to CONFIG_BT_* 2017-08-09 11:14:19 +03:00
sample.yaml samples: bluetooth and net samples need test setup 2017-12-28 20:24:29 -05:00

README.rst

.. _bluetooth_central_hr:

Bluetooth: Central / Heart-rate Monitor
#######################################

Overview
********

Similar to the :ref:`Central <bluetooth_central>` sample, except that this
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
********************

This sample can be found under :file:`samples/bluetooth/central_hr` in the
Zephyr tree.

See :ref:`bluetooth setup section <bluetooth_setup>` for details.