#include int slaves[2] = { 'a', 'b' }; String command; EspSoftwareSerial::UART SerialPorto; void setup() { Serial.begin(9600); SerialPorto.begin(9600, EspSoftwareSerial::SWSERIAL_8N1, 21, 17); Serial.println("Can You read me Major Tom?"); } void loop() { if (Serial.available()) { command = Serial.readStringUntil('\n'); Serial.println(command); SerialPorto.println(command); } else { // SerialPorto.print('0'); delay(10); } }