-->
Page 2 of 3

Re: Sending a Pulse

PostPosted: Thu Oct 27, 2016 7:51 am
by martinayotte
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());
    }
}

Re: Sending a Pulse [SOLVE]

PostPosted: Thu Oct 27, 2016 8:47 am
by Ian Phill
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.

Re: Sending a Pulse

PostPosted: Thu Oct 27, 2016 12:45 pm
by martinayotte
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.

Re: Sending a Pulse

PostPosted: Fri Oct 28, 2016 7:34 am
by Ian Phill
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.