I can not confirm what you say.
I run this sketch on an ESP32
#include "BluetoothSerial.h"
BluetoothSerial SerialBT;
void setup() {
Serial.begin(115200);
SerialBT.begin("ESP32test"); //Bluetooth device name
Serial.println("The device started, now you can pair it with bluetooth!");
}
void loop() {
String a = "page1ok";
uint8_t buf[a.length()];
memcpy(buf,a.c_str(),a.length());
SerialBT.write(buf,a.length());
SerialBT.println();
delay(1000);
}
The compiler doesn't complain when the buffer is declared as uint8_t.
This is what I see on the screen of the Serial Bluetooth Terminal App is use.
What is receiving the message?
