zephyr/samples/bluetooth/central_past
Emil Gydesen 8703381764 Bluetooth: Host: Add conversion macros from ms to various units
Add conversion macros from milliseconds to various units.
The purpose of these macros is to make it more clear/easier
for users to set and read values using milliseconds rather
than the various BT units which may be in 0.625, 1.25 or 10ms
units.

This is especially useful when comparing related values using
different units, such as advertising interval (0.625ms units)
and periodic advertising interval units (1.25ms units).

Users will have to be aware that these macros can provide slightly
different values than what is provided, if the provided values
do not match the units.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2024-11-16 14:06:03 -05:00
..
src Bluetooth: Host: Add conversion macros from ms to various units 2024-11-16 14:06:03 -05:00
CMakeLists.txt
prj.conf
README.rst doc: samples: Adopt code-sample-category across tree 2024-09-23 12:00:00 +02:00
sample.yaml

.. zephyr:code-sample:: ble_central_past
   :name: Central Periodic Advertising Sync Transfer (PAST)
   :relevant-api: bt_gap bluetooth

   Use the Periodic Advertising Sync Transfer (PAST) feature as the sender.

Overview
********

A simple application demonstrating the Bluetooth LE Periodic Advertising Sync Transfer
functionality as the sender.

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

* A board with Bluetooth LE 5.1 support

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

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

Use the sample found under :zephyr_file:`samples/bluetooth/periodic_adv` on
another board that will start periodic advertising, to which this sample will
establish periodic advertising synchronization.

Use the sample found under :zephyr_file:`samples/bluetooth/peripheral_past` in
the Zephyr tree on another board that will advertise and await a periodic
advertising sync transfer.

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