asjdf / webseriallite Goto Github PK
View Code? Open in Web Editor NEWSuper lightweight remote serial monitor for ESP8266 & ESP32 (frontend <3k)
License: GNU General Public License v3.0
Super lightweight remote serial monitor for ESP8266 & ESP32 (frontend <3k)
License: GNU General Public License v3.0
I think it would be nice to clear the command 'line' after sending it...
by adding:
document.getElementById("command-text").value=""
in the sendCommand function (in the encrypted WebSerialWebPage.h)
To clarify: I use the commend line for multiple purposes and often forget to clear it, which results in concatenating the 'new' command I want to send with the previous one, resulting in something that is not recognized mostly (and IF recognized, not what I wanted probably :-) )
增加回调:
Is there an option to add at least some simple security in the form of a password, or login and password?
When running esp8266 at 160MHz, /webserial does not load or is displayed incompletely or repeatedly connect/disconnect.
Everything works fine at 80 MHz and there are no problems
Each page reload takes the free heap down to zero
When I run the demo code, each reload causes the freeheap value to decrease by 1-2 kB. When the value gets close to zero (15x reloads approximately), it causes a loss of function and then eventually a restart of the ESP8266 with an OOM error. Everything can be seen in the picture. How to solve this problem?
Can i have a frontend folder to upgrade function?
WebSerial.println(" ");
WebSerial.println("List of Available Commands:");
WebSerial.println("");
WebSerial.println("help \"print help\"");
WebSerial.println("geteeprom \"Print EEPROM settings.\"");
WebSerial.println("setcur<space><decimal 20.0-100.0> \"Set motor current setting.\"");
WebSerial.println("setaccel<space><decimal 0.04-1.0> \"Set accel setting.\"");
WebSerial.println("setangle<space><decimal 0.0-360.0> \"Set turn Angle setting.\"");
WebSerial.println("streamdata<space><\"true\" or \"false\"> \"Print streamdata.\"");
abaove code prints.. but the last printline not being recieved "streamdata" not printed..
List of Available Commands:
help "print help"
geteeprom "Print EEPROM settings."
setcur<space><decimal 20.0-100.0> "Set motor current setting."
setaccel<space><decimal 0.04-1.0> "Set accel setting."
setangle<space><decimal 0.0-360.0> "Set turn Angle setting."
Hi Atom - Issue #4 did not show up, although I got several errors on the serial monitor that
"ERROR: Too many messages queued". However, it did not appear data was dropped.
Another issue. Terminal is too slow.
Where does console.log() output go?
Is there a JS function to put the data on the browser screen, instead of the Terminal?
Even better, is there a way to direct WebSocket output to the browser screen rather than to JS?
Thanks
Bromium
Hi,
Brilliant libary!
I had big problems with stuttering output at the beginning.
Especially when many WebSerial.println came in a row in the skipt:
WebSerial.print ("Measurement_count: );
WebSerial.println (Measurement_count);
WebSerial.print ("Unix-Time: ");
WebSerial.println (now);
WebSerial.print ("Records in cache: );
WebSerial.println (queue.size());
After replacing this with the following, it worked better:
snprintf(printbuffer, sizeof(printbuffer), "Measurement_count: %i \nUnix-Time: %ld \nRecords in cache: %i", Measurement_count, now, queue.size());
WebSerial.println(printbuffer);
Also, I think it is very important to make an adjustment to the AsyncTCP:
me-no-dev/AsyncTCP#121
Without this change it kept crashing every few hours.
https://github.com/asjdf/WebSerialLite/blob/main/frontend/index.html#L90
I think it has to be 100vh?
You might want to use
let gateway = ``ws://${window.location.host}/webserialws``;
instead of
let gateway = ``ws://${window.location.hostname + window.location.port + window.location.pathname}/webserialws``;
That combination of hostname, port and pathname is not working at all, even on port 80, it tries to access /webserial/webserialws
Hello!
Thank you for this great piece of software.
How can I increase the window size on the browser both horizontally and vertically?
And why is the page code in binary?
Thanks
Bromium
前端使用相对路径,便于用户反向代理接口至其他位置
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.