Skip to content

Commit 905f8f2

Browse files
authored
Warns about SSP only available for ESP32 (espressif#6455)
1 parent c25feca commit 905f8f2

File tree

6 files changed

+23
-1
lines changed

6 files changed

+23
-1
lines changed

libraries/BluetoothSerial/examples/SerialToSerialBT/SerialToSerialBT.ino

+4
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@
1010
#error Bluetooth is not enabled! Please run `make menuconfig` to and enable it
1111
#endif
1212

13+
#if !defined(CONFIG_BT_SPP_ENABLED)
14+
#error Serial Bluetooth not available or not enabled. It is only available for the ESP32 chip.
15+
#endif
16+
1317
BluetoothSerial SerialBT;
1418

1519
void setup() {

libraries/BluetoothSerial/examples/SerialToSerialBTM/SerialToSerialBTM.ino

+4
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@
88

99
#include "BluetoothSerial.h"
1010

11+
#if !defined(CONFIG_BT_SPP_ENABLED)
12+
#error Serial Bluetooth not available or not enabled. It is only available for the ESP32 chip.
13+
#endif
14+
1115
BluetoothSerial SerialBT;
1216

1317
String MACadd = "AA:BB:CC:11:22:33";

libraries/BluetoothSerial/examples/SerialToSerialBT_SSP_pairing/SerialToSerialBT_SSP_pairing.ino

+4
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@
1010
#error Bluetooth is not enabled! Please run `make menuconfig` to and enable it
1111
#endif
1212

13+
#if !defined(CONFIG_BT_SPP_ENABLED)
14+
#error Serial Bluetooth not available or not enabled. It is only available for the ESP32 chip.
15+
#endif
16+
1317
BluetoothSerial SerialBT;
1418
boolean confirmRequestPending = true;
1519

libraries/BluetoothSerial/examples/bt_classic_device_discovery/bt_classic_device_discovery.ino

+4
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44
#error Bluetooth is not enabled! Please run `make menuconfig` to and enable it
55
#endif
66

7+
#if !defined(CONFIG_BT_SPP_ENABLED)
8+
#error Serial Bluetooth not available or not enabled. It is only available for the ESP32 chip.
9+
#endif
10+
711
BluetoothSerial SerialBT;
812

913

libraries/BluetoothSerial/examples/bt_remove_paired_devices/bt_remove_paired_devices.ino

+4
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@
1515
#include"esp_gap_bt_api.h"
1616
#include "esp_err.h"
1717

18+
#if !defined(CONFIG_BT_SPP_ENABLED)
19+
#error Serial Bluetooth not available or not enabled. It is only available for the ESP32 chip.
20+
#endif
21+
1822
#define REMOVE_BONDED_DEVICES 0 // <- Set to 0 to view all bonded devices addresses, set to 1 to remove
1923

2024
#define PAIR_MAX_DEVICES 20

libraries/README.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@ arduino-esp32 includes libraries for Arduino compatibility along with some objec
1212
Bluetooth Low Energy v4.2 client/server framework
1313

1414
### BluetoothSerial
15-
Serial to Bluetooth redirection server
15+
Serial to Bluetooth redirection server\
16+
Note: This library depends on Bluetooth Classic which is only available for ESP32\
17+
(Bluetoothserial is **not available** for ESP32-S2, ESP32-C3, ESP32-S3).
1618

1719
### DNSServer
1820
A basic UDP DNS daemon (includes captive portal demo)

0 commit comments

Comments
 (0)