Closed JMWilton closed 2 weeks ago
I have implemented a workaround:
int SerialMonitorDelay = 0;
template
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
https://github.com/asjdf/WebSerialLite/issues/4#issuecomment-1342696623
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:![image](https://github.com/ayushsharma82/WebSerial/assets/56261911/7af8264f-f203-4ff7-8aec-c10bc0172554)
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:![image](https://github.com/ayushsharma82/WebSerial/assets/56261911/329b6fcd-6875-4be1-b3b2-9843439570e8)
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.