Bluetooth® Classic

[中文]

Bluetooth Classic provides APIs for implementing traditional Bluetooth functionalities, including audio streaming, device communication, and data exchange over the Serial Port Profile. It supports multiple Bluetooth profiles, allowing ESP devices to act as source or sink in scenarios like wireless audio, remote control, and data transmission.

The Bluetooth Classic API provides the following main features:

  • Core protocol support (GAP, L2CAP, and SDP)

  • Serial data communication (SPP)

  • High-quality audio streaming (A2DP)

  • Media playback control (AVRCP)

  • Hands-free calling support (HFP)

  • Input device connectivity (HID host and device roles)


The Bluetooth Classic API in ESP-IDF is organized into the following parts:

Core Protocols

  • Bluetooth GAP

    Generic Access Profile (GAP): Device discovery, pairing, and security management

  • Bluetooth L2CAP

    Logical Link Control and Adaptation Protocol (L2CAP): Data multiplexing and channel management

  • Bluetooth SDP

    Service Discovery Protocol (SDP): Discovers remote device services and attributes

Communication Profile

  • Bluetooth SPP

    Serial Port Profile (SPP): Emulates a serial communication channel over Bluetooth for data exchange

Audio and Media Profiles

  • Bluetooth A2DP

    Advanced Audio Distribution Profile (A2DP): High-quality audio streaming (source and sink)

  • Bluetooth AVRCP

    Audio/Video Remote Control Profile (AVRCP): Media playback control (play, pause, volume)

Hands-Free Profile (HFP)

Human Interface Device (HID)

Each part typically includes an Overview, Application Examples, and API Reference, covering purpose, main functionality, sample usage, and detailed API documentation.


Was this page helpful?