Closed
Description
Board
esp32-c6
Device Description
simple esp32-c6 wrrom1
Hardware Configuration
simple esp32-c6 wrrom1 n8
Version
latest master (checkout manually)
IDE Name
arduino ide
Operating System
windows 11
Flash frequency
80mhz
PSRAM enabled
yes
Upload speed
115200
Description
When i try to upload from esp32 example SerialToSerialBT
I receive this error
C:\Users\taolo\AppData\Local\Temp.arduinoIDE-unsaved2025110-15336-mdlic9.hcp6r\SerialToSerialBT\SerialToSerialBT.ino:19:2: error: #error Serial Port Profile for Bluetooth is not available or not enabled. It is only available for the ESP32 chip.
19 | #error Serial Port Profile for Bluetooth is not available or not enabled. It is only available for the ESP32 chip.
With and esp32-wroom 32u it works ok!
thanks.
Sketch
// This example code is in the Public Domain (or CC0 licensed, at your option.)
// By Evandro Copercini - 2018
//
// This example creates a bridge between Serial and Classical Bluetooth (SPP)
// and also demonstrate that SerialBT have the same functionalities of a normal Serial
// Note: Pairing is authenticated automatically by this device
#include "BluetoothSerial.h"
String device_name = "ESP32-BT-Slave";
// Check if Bluetooth is available
#if !defined(CONFIG_BT_ENABLED) || !defined(CONFIG_BLUEDROID_ENABLED)
#error Bluetooth is not enabled! Please run `make menuconfig` to and enable it
#endif
// Check Serial Port Profile
#if !defined(CONFIG_BT_SPP_ENABLED)
#error Serial Port Profile for Bluetooth is not available or not enabled. It is only available for the ESP32 chip.
#endif
BluetoothSerial SerialBT;
void setup() {
Serial.begin(115200);
SerialBT.begin(device_name); //Bluetooth device name
//SerialBT.deleteAllBondedDevices(); // Uncomment this to delete paired devices; Must be called after begin
Serial.printf("The device with name \"%s\" is started.\nNow you can pair it with Bluetooth!\n", device_name.c_str());
}
void loop() {
if (Serial.available()) {
SerialBT.write(Serial.read());
}
if (SerialBT.available()) {
Serial.write(SerialBT.read());
}
delay(20);
}
Debug Message
C:\Users\taolo\AppData\Local\Temp\.arduinoIDE-unsaved2025110-15336-mdlic9.hcp6r\SerialToSerialBT\SerialToSerialBT.ino:19:2: error: #error Serial Port Profile for Bluetooth is not available or not enabled. It is only available for the ESP32 chip.
Other Steps to Reproduce
No response
I have checked existing issues, online documentation and the Troubleshooting Guide
- I confirm I have checked existing issues, online documentation and Troubleshooting guide.