WebREPL sends 1 character at a time? #11686
Replies: 3 comments 1 reply
-
Here is a response about this issue I wrote some time ago on the MP discord. Just copied and pasted here: I have a personal CLI tool which I have used for a couple of years to develop MP code on various ESP32 devices around my house on wifi. The reason webrepl is so slow is because it is character based, i.e. each typed char is sent over the network socket and then echoed back by MP over the socket to the terminal. So I don't use the MP webrepl client. My implementation is line based using websocket-client. It means I don't support RAW/paste mode etc, but I at least don't need that. Apart from being MUCH less laggy, another big advantage is that I can use GNU |
Beta Was this translation helpful? Give feedback.
-
A recent update to mpremote #11467 addresses this issue. |
Beta Was this translation helpful? Give feedback.
-
The question would be clearer if you could indicate which direction you are talking about – from MicroPython device (WebSocket server) to terminal (WebSocket client) or the other way around? Either way, I don’t know the answer offhand, but you should be able to figure it out by experimentation and reading the code of either side.
I’m confused, does mpremote now support WebREPL? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
It looks like WebREPL is sending output 1 character at a time -- i.e. makes a
send()
operation for each character.Is it really so? If yes, then why? (If no, then I need to investigate my WebREPL client.)
Beta Was this translation helpful? Give feedback.
All reactions