zephyr/samples/bluetooth/direct_adv
Aleksander Wasaznik c6ad4a7927 Bluetooth: samples: Switch to one-time adv
This patch removes all uses of the adv auto-resume feature in the
Bluetooth samples. The auto-resume feature is planned for deprecation.

Samples that are not intended to demonstrate a technique to do with
re-connection simply do not restart the advertiser, in interest of
simplicity. The user is expected to reboot the sample when needed.

Signed-off-by: Aleksander Wasaznik <aleksander.wasaznik@nordicsemi.no>
2024-05-29 10:48:04 -07:00
..
src Bluetooth: samples: Switch to one-time adv 2024-05-29 10:48:04 -07:00
CMakeLists.txt samples: bluetooth: Add sample demonstrating direct advertising 2022-10-03 10:13:40 +02:00
prj.conf flash: Move dependency on FLASH_PAGE_LAYOUT where it belongs 2024-04-10 10:01:40 +02:00
README.rst samples: bluetooth: Add sample demonstrating direct advertising 2022-10-03 10:13:40 +02:00
sample.yaml samples/tests: bluetooth: Remove qemu_cortex_m3 2023-04-12 09:01:34 +02:00

.. _ble_direct_adv:

Bluetooth: Direct Advertising
#############################

Overview
********

Application demonstrating the BLE Direct Advertising capability. If no device is bonded
to the peripheral, casual advertising will be performed. Once bonded, on every subsequent
boot direct advertising to the bonded central will be performed. Additionally this sample
provides two BLE characteristics. To perform write, devices need to be bonded, while read
can be done just after connection (no bonding required).

Please note that direct advertising towards iOS based devices is not allowed.
For more information about designing BLE devices for Apple products refer to
"Accessory Design Guidelines for Apple Devices".

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

* A board with BLE support
* Second BLE device acting as a central with enabled privacy. For example another Zephyr board
  or any modern smartphone

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

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

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