• Skip to main content
  • Skip to primary sidebar

RNTLab.com

The Ultimate Shortcut to Learn Electronics and Programming with Open Source Hardware and Software

  • Courses
  • Forum
    • Forum
    • Ask Question
  • Shop
  • Account
  • Blog
  • Login

Webserial – only a few lines printed

Q&A Forum › Webserial – only a few lines printed
0 Vote Up Vote Down
Barry asked 2 months ago
3 Answers
0 Vote Up Vote Down
Sara Santos Staff answered 2 months ago

Hi.
Can you better describe your issue?
Regards,
Sara

0 Vote Up Vote Down
Barry answered 2 months ago

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

0 Vote Up Vote Down
Sara Santos Staff answered 2 months ago

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

Primary Sidebar

Login to Ask or Answer Questions

This Forum is private and it’s only available for members enrolled in our Courses.

Login »

Latest Course Updates

  • [New Edition] Build ESP32-CAM Projects eBook – 2nd Edition April 16, 2025
  • [eBook Updated] Learn ESP32 with Arduino IDE eBook – Version 3.2 April 16, 2025

You must be logged in to view this content.

Contact Support - Refunds - Privacy - Terms - MakerAdvisor.com - Member Login

Copyright © 2013-2025 · RandomNerdTutorials.com · All Rights Reserved

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.