zephyr/samples/bluetooth/peripheral
Joakim Andersson 56c73eae39 Bluetooth: samples: Fix peripheral sample handling of string values
Fix peripheral sample handling of string values. The read callback
uses strlen to get the length of the current string value. Make sure
that the string value is always zero-byte terminated.

Fix multiple characteristics using the same storage for its value.

Signed-off-by: Joakim Andersson <joakim.andersson@nordicsemi.no>
2021-05-31 17:41:12 +02:00
..
boards
src Bluetooth: samples: Fix peripheral sample handling of string values 2021-05-31 17:41:12 +02:00
CMakeLists.txt samples: make find_package(Zephyr...) REQUIRED 2020-05-29 10:47:25 +02:00
prj.conf Bluetooth: Remove _gatt_ infix for Device Information Service (DIS) 2020-09-04 15:38:44 +02:00
README.rst
sample.yaml sanitycheck: inclusive language 2020-08-27 07:04:07 -04:00

.. _ble_peripheral:

Bluetooth: Peripheral
#####################

Overview
********

Application demonstrating the BLE Peripheral role. It has several well-known and
vendor-specific GATT services that it exposes.


Requirements
************

* BlueZ running on the host, or
* A board with BLE support

Building and Running
********************

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

See :ref:`bluetooth samples section <bluetooth-samples>` for details.