-
Notifications
You must be signed in to change notification settings - Fork 117
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Timing Issue - Need delay between multiple WebSerial.println commands #65
Comments
I have implemented a workaround: SerialMonitorDelay is set to a non-zero value via a message from the client web page. This eliminates a delay if no client is attached. The delay can be controlled by the value sent from the client page. Monitoring can be turned back off by sending a zero value. |
I thought you just fill the send-queue. This issue wasn't caused by this lib. |
I now suspect that the html receive event code might be reentered before it finishes its work. |
I thought this issue might be help |
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days. |
This issue was closed because it has been stalled for 5 days with no activity. |
When executing the following code:
WebSerial.println(WiFi.localIP());
//delay(500);
WebSerial.println("joe was here");
// delay(500);
WebSerial.println("this is now");
The output is:

When executing the following code:
WebSerial.println(WiFi.localIP());
delay(500);
WebSerial.println("joe was here");
delay(500);
WebSerial.println("this is now");
The output is:

It appears that subsequent WebSerial.println commands overwrite the previous WebSerial.println command if there is an insufficient delay. It would be expected that no delay should be necessary.
The text was updated successfully, but these errors were encountered: