Chat freely about anything...

User avatar
By martinayotte
#57211 You should describe what is your issue exactly ...

BTW, your Serial.read() isn't optimized, since you read only one char and then hiting delay() before reading next one. You should read all chars until buffer empty :

Code: Select allif (ESPserial.available() > 0) {
    while (ESPserial.available() > 0) {
        Serial.write(ESPserial.read());
    }
}
User avatar
By Ian Phill
#57213 Hey people. I done it, wow I'm so excited. the problem was the time because the delay(). But now only work when I open the serial monitor window. Somebody know how I can open this serial monitor through code, maybe a function, I don't know

Thank you for all. This forum is excellent.
User avatar
By martinayotte
#57227 What do you means ?
SerialMonitor is a terminal emulator application built-in in ArduinoIDE, but you can use any other such Putty, minicom. It is not the ESP that will launch such application, it is always the end-users that need to launch it on his PC.
User avatar
By Ian Phill
#57274
martinayotte wrote:What do you means ?


if (ESPserial.available() > 0) {
while (ESPserial.available() > 0) {
Serial.write(ESPserial.read()); // I write this in my receptor
}
}

My receiver only get the signal when the serial monitor window is open. When I close the windows the transmition stop.