forked from espressif/arduino-esp32
disable BT Serial examples for S2
This commit is contained in:
@ -3,6 +3,7 @@
|
||||
//
|
||||
//This example creates a bridge between Serial and Classical Bluetooth (SPP)
|
||||
//and also demonstrate that SerialBT have the same functionalities of a normal Serial
|
||||
#if CONFIG_IDF_TARGET_ESP32
|
||||
|
||||
#include "BluetoothSerial.h"
|
||||
|
||||
@ -26,4 +27,8 @@ void loop() {
|
||||
Serial.write(SerialBT.read());
|
||||
}
|
||||
delay(20);
|
||||
}
|
||||
}
|
||||
#else
|
||||
void setup() {}
|
||||
void loop() {}
|
||||
#endif
|
||||
|
@ -5,6 +5,7 @@
|
||||
//it creates a bridge between Serial and Classical Bluetooth (SPP)
|
||||
//this is an extention of the SerialToSerialBT example by Evandro Copercini - 2018
|
||||
//
|
||||
#if CONFIG_IDF_TARGET_ESP32
|
||||
|
||||
#include "BluetoothSerial.h"
|
||||
|
||||
@ -54,3 +55,8 @@ void loop() {
|
||||
}
|
||||
delay(20);
|
||||
}
|
||||
#else
|
||||
void setup() {}
|
||||
void loop() {}
|
||||
#endif
|
||||
|
||||
|
@ -10,6 +10,7 @@
|
||||
//The only remedy is to delete this saved bound device from your device flash memory
|
||||
//and pair with the other device again.
|
||||
//
|
||||
#if CONFIG_IDF_TARGET_ESP32
|
||||
#include "esp_bt_main.h"
|
||||
#include "esp_bt_device.h"
|
||||
#include"esp_gap_bt_api.h"
|
||||
@ -85,3 +86,7 @@ void setup() {
|
||||
}
|
||||
|
||||
void loop() {}
|
||||
#else
|
||||
void setup() {}
|
||||
void loop() {}
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user