Bluetooth Classic
These samples demonstrate the use of Bluetooth Classic in Zephyr.
- Hands-freeUse the Hands-Free Profile (HFP) APIs.
- Hands-free Audio Gateway (AG)Use the Hands-Free Profile Audio Gateway (AG) APIs.
Prerequisites
A board with Bluetooth Classic support
Recommended boards:
Building the Samples
To build any Bluetooth Classic sample, use the following commands:
west build -p auto -b <board> samples/bluetooth/classic/<sample_name>
For example, to build for mimxrt1170_evk@B/mimxrt1176/cm7:
west build -p auto -b mimxrt1170_evk@B/mimxrt1176/cm7 samples/bluetooth/classic/<sample_name>
Refer to Application Development for more information.
Configuration
The following Kconfig options must be enabled for Bluetooth Classic functionality:
CONFIG_BT=y
CONFIG_BT_CLASSIC=y
Enable verbose Bluetooth logging:
CONFIG_LOG=y
CONFIG_LOG_DEFAULT_LEVEL=<log level>
Running the Samples
Flashing
Flash the built sample to your target board:
west flash
Monitoring Output
Monitor the sample output using a serial terminal.
- Hands-freeUse the Hands-Free Profile (HFP) APIs.
- Hands-free Audio Gateway (AG)Use the Hands-Free Profile Audio Gateway (AG) APIs.