zephyr/samples/bluetooth/peripheral
Jordan Yates ffab099eb9 Bluetooth: add destroy callback to indication
Adds a `destroy` callback to the `struct bt_gatt_indicate_params` which
is used to signify to the application that the indication operation has
completed and the struct instance can be freed/destroyed.

This is required as the number of indication value callbacks that will
be triggered is not known by the caller when the `conn` parameter is
`NULL`.

Tracking when this callback should be run is mananged by a private
reference counter inside the struct.

Signed-off-by: Jordan Yates <jordan.yates@data61.csiro.au>
2020-11-10 11:21:46 +01:00
..
boards
src Bluetooth: add destroy callback to indication 2020-11-10 11:21:46 +01:00
CMakeLists.txt
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.