Error: Serial Bluetooth not available or not enabled. It is only available for the ESP32 chip

Hello,

My goal is to have two ESP32s communicate via Bluetooth. I am using this master and slave code from GitHub to allow communication, but the two MCUs never connect.

To determine if the devices could be detected, I ran the bt_classic_device_discovery built-in example. When running it on the ESP32 that connects to COM5, the program runs successfully and I am able to detect my ESP32_SLAVE device. However, when running the program on the ESP32 connected to COM3, I get the following error:

#3error Serial Bluetooth not available or not enabled. It is only available for the ESP32 chip.

Both devices have Bluetooth enabled because when either one connects to COM5, I do not get the above error, but when they connect to COM3, I do.

I was wondering what steps I should take to debug.

Thanks.

What versions of the ESP32 are you using? Only some of them support classic Bluetooth. For example the C3 and S3 only support BLE.

https://docs.espressif.com/projects/esp-idf/en/v5.0.7/esp32s3/hw-reference/chip-series-comparison.html

I am using ESP32 WROOM 32E. It should support BLE.

Running bt_classic_device_discovery showed that the slave device was discoverable.

Dump scan results: 1
- 1: Name: ESP32_Slave, Address: f8:b3:b7:3a:05:56, cod: 0x02c110, rssi: -39
-- Dump finished --
Stopping discoverAsync... stopped
Starting synchronous discovery... 
>> Dump scan results: 1
- 1: Name: ESP32_Slave, Address: f8:b3:b7:3a:05:56, cod: 0x02c110, rssi: -32
-- Dump finished --

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.