Something wrong when I posted and I didn’t send the text.
On an ESP32, IDE 2.3.4, latest lib of Webserial. User starts webserial and sees the proper page. Entering ‘?’ should return 5 lines.
In the code I alternate Serial.println() and Webserial.println(). This results in erratic behavior on the webserial page. Often I only see 1 or 2 lines displayed, rather than 5.
If I then enter ‘.’ which is not a valid command, a line or 2 of the partially printed line appears. It seems it was stuck in a buffer.
I’ve found that if I change the code to send the 5 lines of Serial.println first, then 5 lines of Webserial.println it seems to work OK. This however presents a problem when I’m trying to print the multi-line log file in a ‘for’ loop.
This seems to be competition for a shared resource or a priority issue.
Barry
Hi.
I’m sorry, but I’m not sure why that happens.
I haven’t tried the latest version of the library yet. I have to update the tutorial.
Maybe it’s better to open an issue on the Library Github page to see if it’s an issue with the library: https://github.com/ayushsharma82/WebSerial/issues
Regards,
Sara