#define RXD2 16 // aka GPIO16
#define TXD2 17 // aka GPIO17
void setup() {
// put your setup code here, to run once:
Serial2.begin(38400, SERIAL_8N1, RXD2, TXD2);
Serial.begin(115200);
Serial.println("Hello, ESP32!");
}
void loop() {
// put your main code here, to run repeatedly:
delay(10); // this speeds up the simulation
while( Serial2.available()) {
Serial.print(char(Serial2.read()));
}
}