Bluetooth samples
To build any of the Bluetooth samples, follow the same steps as building any other Zephyr application. Refer to Application Development for more information.
Many Bluetooth samples can be run on QEMU or native_sim with support for external Bluetooth Controllers. Refer to the Hardware setup section for further details.
Several of the bluetooth samples will build a Zephyr-based Controller that can
then be used with any external Host (including Zephyr running natively or with
QEMU or native_sim
), those are named accordingly with an “HCI” prefix in the
documentation and are prefixed with hci_
in their folder names.
Note
If you want to run any bluetooth sample on the nRF5340 device (build using
-DBOARD=nrf5340dk/nrf5340/cpuapp
or
-DBOARD=nrf5340dk/nrf5340/cpuapp/ns
) you must also build
and program the corresponding sample for the nRF5340 network core
HCI IPC which implements the Bluetooth
Low Energy controller.
Note
The mutually-shared encryption key created during host-device paring may get old after many test iterations. If this happens, subsequent host-device connections will fail. You can force a re-paring and new key to be created by removing the device from the associated devices list on the host.
- Broadcast Audio Assistant
- Broadcast Audio Sink
- Broadcast Audio Source
- Unicast Audio Client
- Unicast Audio Server
- Beacon
- Broadcaster
- Multiple Broadcaster
- BTHome sensor template
- Common Audio Profile Acceptor
- Common Audio Profile Initiator
- Central
- Central / GATT Write
- Heart-rate Monitor (Central)
- Health Thermometer (Central)
- Central Multilink
- Central OTC
- Central Periodic Advertising Sync Transfer (PAST)
- Direct Advertising
- Direction Finding Central
- Direction Finding Periodic Advertising Locator
- Direction Finding Periodic Advertising Beacon
- Direction Finding Peripheral
- Eddystone
- Encrypted Advertising
- Extended Advertising
- Hands-free
- Hands-free Audio Gateway (AG)
- Hearing Access Profile (HAP) Hearing Aid (HA)
- HCI IPC
- HCI Power Control
- HCI SPI
- HCI UART
- HCI 3-wire (H:5)
- HCI UART async
- HCI USB
- HCI H4 over USB
- HCI Vendor-Specific Scan Request
- iBeacon
- Isochronous Broadcaster
- Isochronous Broadcaster Benchmark
- ISO (Central)
- Isochronous Connected Channels Benchmark
- ISO (Peripheral)
- Synchronized Receiver
- Mesh
- Mesh Demo
- Mesh Provisioner
- MTU Update
- Observer
- Public Broadcast Sink
- Public Broadcast Source
- Periodic Advertising
- Periodic Advertising Connection Procedure (Initiator)
- Periodic Advertising with Responses (PAwR) Advertiser
- Periodic Advertising Synchronization
- Periodic Advertising Connection Procedure (Responder)
- Periodic Advertising with Responses (PAwR) Synchronization
- Peripheral
- Peripheral Accept List
- Cycling Speed and Cadence (CSC) Peripheral
- DIS Peripheral
- ESP Peripheral
- Peripheral GATT Write
- HID Peripheral
- Heart-rate Monitor (Peripheral)
- Health Thermometer (Peripheral)
- Peripheral Identity
- Peripheral NUS
- Peripheral Object Transfer Service (OTS)
- Periodic Advertising Synchronization Transfer Peripheral
- Peripheral SC-only
- Scan & Advertise
- ST Bluetooth LE Sensor Demo
- TMAP Broadcast Media Receiver (BMR)
- TMAP Broadcast Media Sender (BMS)
- TMAP (Central)
- TMAP (Peripheral)