#include <BluetoothSerial.h>
BluetoothSerial SerialBT;
void setup() {
Serial.begin(115200);
SerialBT.begin("ESP32_SERVER");
Serial.println("Ready to Pair");
}
void loop() {
if (SerialBT.available()) {
String received = SerialBT.readString();
Serial.print("Received: ");
Serial.println(received);
}
}