forked from espressif/arduino-esp32
Warns about SSP only available for ESP32 (#6455)
This commit is contained in:
@ -10,6 +10,10 @@
|
|||||||
#error Bluetooth is not enabled! Please run `make menuconfig` to and enable it
|
#error Bluetooth is not enabled! Please run `make menuconfig` to and enable it
|
||||||
#endif
|
#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;
|
BluetoothSerial SerialBT;
|
||||||
|
|
||||||
void setup() {
|
void setup() {
|
||||||
|
@ -8,6 +8,10 @@
|
|||||||
|
|
||||||
#include "BluetoothSerial.h"
|
#include "BluetoothSerial.h"
|
||||||
|
|
||||||
|
#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;
|
BluetoothSerial SerialBT;
|
||||||
|
|
||||||
String MACadd = "AA:BB:CC:11:22:33";
|
String MACadd = "AA:BB:CC:11:22:33";
|
||||||
|
@ -10,6 +10,10 @@
|
|||||||
#error Bluetooth is not enabled! Please run `make menuconfig` to and enable it
|
#error Bluetooth is not enabled! Please run `make menuconfig` to and enable it
|
||||||
#endif
|
#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;
|
BluetoothSerial SerialBT;
|
||||||
boolean confirmRequestPending = true;
|
boolean confirmRequestPending = true;
|
||||||
|
|
||||||
|
@ -4,6 +4,10 @@
|
|||||||
#error Bluetooth is not enabled! Please run `make menuconfig` to and enable it
|
#error Bluetooth is not enabled! Please run `make menuconfig` to and enable it
|
||||||
#endif
|
#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;
|
BluetoothSerial SerialBT;
|
||||||
|
|
||||||
|
|
||||||
|
@ -15,6 +15,10 @@
|
|||||||
#include"esp_gap_bt_api.h"
|
#include"esp_gap_bt_api.h"
|
||||||
#include "esp_err.h"
|
#include "esp_err.h"
|
||||||
|
|
||||||
|
#if !defined(CONFIG_BT_SPP_ENABLED)
|
||||||
|
#error Serial Bluetooth not available or not enabled. It is only available for the ESP32 chip.
|
||||||
|
#endif
|
||||||
|
|
||||||
#define REMOVE_BONDED_DEVICES 0 // <- Set to 0 to view all bonded devices addresses, set to 1 to remove
|
#define REMOVE_BONDED_DEVICES 0 // <- Set to 0 to view all bonded devices addresses, set to 1 to remove
|
||||||
|
|
||||||
#define PAIR_MAX_DEVICES 20
|
#define PAIR_MAX_DEVICES 20
|
||||||
|
@ -12,7 +12,9 @@ arduino-esp32 includes libraries for Arduino compatibility along with some objec
|
|||||||
Bluetooth Low Energy v4.2 client/server framework
|
Bluetooth Low Energy v4.2 client/server framework
|
||||||
|
|
||||||
### BluetoothSerial
|
### BluetoothSerial
|
||||||
Serial to Bluetooth redirection server
|
Serial to Bluetooth redirection server\
|
||||||
|
Note: This library depends on Bluetooth Classic which is only available for ESP32\
|
||||||
|
(Bluetoothserial is **not available** for ESP32-S2, ESP32-C3, ESP32-S3).
|
||||||
|
|
||||||
### DNSServer
|
### DNSServer
|
||||||
A basic UDP DNS daemon (includes captive portal demo)
|
A basic UDP DNS daemon (includes captive portal demo)
|
||||||
|
Reference in New Issue
Block a user