disable BT Serial examples for S2

This commit is contained in:
me-no-dev
2020-05-12 01:16:30 +03:00
parent a6a68a9546
commit 46abedcc1a
3 changed files with 17 additions and 1 deletions

View File

@ -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

View File

@ -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

View File

@ -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