2024-08-29 23:32:37 +08:00
|
|
|
.. zephyr:code-sample:: ble_periodic_adv_sync_rsp
|
|
|
|
:name: Periodic Advertising with Responses (PAwR) Synchronization
|
|
|
|
:relevant-api: bt_gap bluetooth
|
2023-03-30 19:04:55 +08:00
|
|
|
|
2024-09-02 15:25:43 +08:00
|
|
|
Implement Bluetooth LE Periodic Advertising with Responses Synchronization.
|
2023-03-30 19:04:55 +08:00
|
|
|
|
|
|
|
Overview
|
|
|
|
********
|
|
|
|
|
2024-09-02 15:25:43 +08:00
|
|
|
A simple application demonstrating the Bluetooth LE Periodic Advertising with
|
2023-03-30 19:04:55 +08:00
|
|
|
Responses Synchronization functionality.
|
|
|
|
|
|
|
|
This sample will echo the data received in subevent indications back to the
|
|
|
|
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.
|
|
|
|
|
|
|
|
Flash this sample to multiple devices and they will be given different
|
|
|
|
subevents and response slots, to that they can communicate with the
|
|
|
|
advertiser concurrently.
|
|
|
|
|
|
|
|
Requirements
|
|
|
|
************
|
|
|
|
|
2024-09-02 15:25:43 +08:00
|
|
|
* A board with Bluetooth LE support
|
2023-03-30 19:04:55 +08:00
|
|
|
* A controller that supports the Periodic Advertising with Responses (PAwR) - Scanner feature
|
|
|
|
|
|
|
|
Building and Running
|
|
|
|
********************
|
|
|
|
|
|
|
|
This sample can be found under :zephyr_file:`samples/bluetooth/periodic_sync_rsp` in
|
|
|
|
the Zephyr tree.
|
|
|
|
|
|
|
|
Use the sample found under :zephyr_file:`samples/bluetooth/periodic_adv_rsp` on
|
|
|
|
another board that will start periodic advertising, which will connect to this
|
|
|
|
sample and transfer the synchronization info.
|
|
|
|
|
2024-09-16 16:55:34 +08:00
|
|
|
See :zephyr:code-sample-category:`bluetooth` samples for details.
|