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
Bluetooth: 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.
- Bluetooth: Broadcast Audio Assistant
- Bluetooth: Broadcast Audio Sink
- Bluetooth: Broadcast Audio Source
- Bluetooth: Unicast Audio Client
- Bluetooth: Unicast Audio Server
- Bluetooth: Beacon
- Bluetooth: Broadcaster
- Bluetooth: Multiple Broadcaster
- Bluetooth: BTHome sensor template
- Bluetooth: Common Audio Profile Acceptor
- Bluetooth: Common Audio Profile Initiator
- Bluetooth: Central
- Bluetooth: Central / GATT Write
- Bluetooth: Central / Heart-rate Monitor
- Bluetooth: Central / Health Thermometer sensor
- Bluetooth: Central ISO
- Bluetooth: Central
- Bluetooth: Central OTC
- Bluetooth: Central Periodic Advertising Sync Transfer (PAST)
- Bluetooth: Direct Advertising
- Bluetooth: Direction Finding Central
- Bluetooth: Direction Finding Periodic Advertising Locator
- Bluetooth: Direction Finding Periodic Advertising Beacon
- Bluetooth: Direction Finding Peripheral
- Bluetooth: Eddystone
- Bluetooth: Encrypted Advertising
- Bluetooth: Extended Advertising
- Bluetooth: Handsfree
- Bluetooth: Handsfree Audio Gateway
- Bluetooth: HAP Hearing Aid (HA)
- Bluetooth: HCI IPC
- Bluetooth: HCI Power Control
- Bluetooth: HCI SPI
- Bluetooth: HCI UART
- Bluetooth: HCI UART 3WIRE
- Bluetooth: HCI UART based on ASYNC UART
- Bluetooth: HCI USB
- Bluetooth: HCI H4 over USB
- Bluetooth: HCI VS Scan Request
- Bluetooth: iBeacon
- Bluetooth: Isochronous Broadcaster
- Bluetooth: Throughput
- Bluetooth: Throughput
- Bluetooth: Synchronized Receiver
- Bluetooth: Mesh
- Bluetooth: Mesh Demo
- Bluetooth: Mesh Provisioner
- Bluetooth: MTU Update
- Bluetooth: Observer
- Bluetooth: Public Broadcast Sink
- Bluetooth: Public Broadcast Source
- Bluetooth: Periodic Advertising
- Bluetooth: Periodic Advertising Connection Procedure - Initiator
- Bluetooth: Periodic Advertising with Responses (PAwR) Advertiser
- Bluetooth: Periodic Advertising Synchronization
- Bluetooth: Periodic Advertising Connection Procedure - Responder
- Bluetooth: Periodic Advertising with Responses (PAwR) Synchronization
- Bluetooth: Peripheral
- Bluetooth: Peripheral Accept List
- Bluetooth: Peripheral CSC
- Bluetooth: Peripheral DIS
- Bluetooth: Peripheral ESP
- Bluetooth: Peripheral GATT Write
- Bluetooth: Peripheral HIDs
- Bluetooth: Peripheral HR
- Bluetooth: Peripheral HT
- Bluetooth: Peripheral Identity
- Bluetooth: Peripheral ISO
- Bluetooth: Peripheral NUS
- Bluetooth: Peripheral OTS
- Bluetooth: Periodic Advertising Synchronization Transfer
- Bluetooth: Peripheral SC-only
- Bluetooth: Scan & Advertise
- Bluetooth: ST BLE Sensor Demo
- Bluetooth: TMAP BMR
- Bluetooth: TMAP BMS
- Bluetooth: TMAP Central
- Bluetooth: TMAP Peripheral