zephyr/samples/bluetooth/periodic_adv_rsp
Hakan Jansson 8a7a737a14 samples: bluetooth: Fix PAwR null dereference on disconnection
If an involuntary disconnection happened it could set default_conn to NULL
while it was still being used in the main while loop.

Signed-off-by: Hakan Jansson <hakan.jansson@infineon.com>
2024-09-26 17:40:54 -04:00
..
src samples: bluetooth: Fix PAwR null dereference on disconnection 2024-09-26 17:40:54 -04:00
CMakeLists.txt
README.rst
prj.conf
sample.yaml

README.rst

.. zephyr:code-sample:: ble_periodic_adv_rsp
   :name: Periodic Advertising with Responses (PAwR) Advertiser
   :relevant-api: bt_gap bluetooth

   Use Bluetooth LE Periodic Advertising with Responses (PAwR) Advertiser functionality.

Overview
********

A simple application demonstrating the Bluetooth LE Periodic Advertising with
Responses Advertiser functionality.

This sample will scan for the corresponding sync sample and send the required
synchronization info to it. The advertising data is a counter that increases
for each subevent.

Multiple devices can synchronize and respond to one advertiser.

Which subevent to listen to and in which response slot to respond is
application specific. In this sample it is decided by the PAwR advertiser.
Upon connection it will write to a GATT characteristic
the assigned subevent and response slot.

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

* A board with Bluetooth LE support
* A controller that supports the Periodic Advertising with Responses (PAwR) - Advertiser feature

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

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

Use the sample found under :zephyr_file:`samples/bluetooth/periodic_sync_rsp` in the
Zephyr tree that will synchronize and respond to this sample.

See :zephyr:code-sample-category:`bluetooth` samples for details.