Hello,
I use SerialtoSerialBT example of Arduino IDE (hereunder).
I need to put following strings in my ESP32 'PowerOn, PowerOff, Rec, Stop'. These strings are issued from a Smartphone linked thru Bluetooth.
All is working... , but I need them to be stored inside ESP32. Each trial to put 'char' strings in the loop gave weird additional characters or loss of characters. Any idea/ help to store in buffers instead of just printing in Serial Monitor ? Thanks for help and advice.
BluetoothSerial SerialBT;
void setup() {
Serial.begin(115200);
void loop() {
if (Serial.available()) {
SerialBT.write(Serial.read());
}
if (SerialBT.available()) {
Serial.write(SerialBT.read());
}
delay(1);
}