the compiling for ESP32 Dev Module passed, failed for ESP32 S3, why and how to fix?
Thanks
Adam
Code: Select all
#include "BluetoothSerial.h"
#if !defined(CONFIG_BT_ENABLED) || !defined(CONFIG_BLUEDROID_ENABLED)
#error Bluetooth is not enabled! Please run `make menuconfig` to and enable it
#endif
#if !defined(CONFIG_BT_SPP_ENABLED)
#error Serial Bluetooth not available or not enabled. It is only available for the ESP32 chip.
#endif
BluetoothSerial SerialBT;
void setup() {
Serial.begin(115200);
SerialBT.begin("ESP32test"); //Bluetooth device name
Serial.println("The device started, now you can pair it with bluetooth!");
}
void loop() {
if (Serial.available()) {
SerialBT.write(Serial.read());
}
if (SerialBT.available()) {
Serial.write(SerialBT.read());
}
delay(20);
}
Code: Select all
Arduino: 1.8.19 (Windows 10), Board: "ESP32S3 Dev Module, Disabled, Disabled, QIO 80MHz, 4MB (32Mb), Core 1, Core 1, Hardware CDC and JTAG, Enabled, Disabled, Disabled, UART0 / Hardware CDC, Default 4MB with spiffs (1.2MB APP/1.5MB SPIFFS), 240MHz (WiFi), 921600, None, Disabled"
SerialToSerialBT_m:15:2: error: #error Serial Bluetooth not available or not enabled. It is only available for the ESP32 chip.
#error Serial Bluetooth not available or not enabled. It is only available for the ESP32 chip.
^~~~~
exit status 1
#error Serial Bluetooth not available or not enabled. It is only available for the ESP32 chip.
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.