Skip to content

Latest commit

 

History

History
21 lines (11 loc) · 896 Bytes

File metadata and controls

21 lines (11 loc) · 896 Bytes

Software Serial Console

You can communicate with ESP32 serial interface USB cable.

From ESP32 to PC

You can use the same code as in Hello World example:

void setup() {
Serial.begin(9600);
}
void loop() {
Serial.println("Hello World!");
delay(500);
}

You can use Tools > Serial Monitor or any other serial client like Putty to read data from the serial port.

From PC TO ESP32

void setup() {
Serial.begin(9600);
}
void loop() {
// Check if there is data comming
if (Serial.available()) {
// Read string until newline character
String str = Serial.readStringUntil('\n');
Serial.println("String: " + str);
}
}

You can use Arduino IDE Serial Monitor using Tools > Serial Monitor or any other serial client like Putty to send data to the serial port.

Sources