How to Enable ESP-AT Classic Bluetooth

[中文]

By default, Classic Bluetooth AT commands are disabled in the ESP32 series AT firmware. If you want to use them on ESP32 devices, please follow the steps below. The commands supported by AT are classified into three categories, general Bluetooth commands, SPP commands, and A2DP commands and each category may be enabled and disabled separately.

  1. Clone the ESP-AT project.

  2. Run the configuration utility by executing ./build.py menuconfig (Linux or macOS) or build.py menuconfig (Windows).

  3. Enable the commands you need.

  • Enable general Bluetooth commands.

Component config -> AT -> AT bt command support.

  • Enable SPP commands.

    Component config -> AT -> AT bt command support -> AT bt spp command support.

  • Enable A2DP commands.

    Component config -> AT -> AT bt command support -> AT bt a2dp command support.

  1. Compile the project to generate the new firmware in build/esp-at.bin.

  2. Flash the new firmware to your device.