void setup() {
// put your setup code here, to run once:
Serial.begin(115200);
Serial.println("Hello, ESP32!");
}
void loop() {
// put your main code here, to run repeatedly:
delay(10); // this speeds up the simulation
String str = readTerminal();
if (str != "")Serial.print(str);
}
String readTerminal(){
String strTerminal = "";
if (Serial.available()){
strTerminal = Serial.readStringUntil('\0');
}
return strTerminal;
}