Websocket limitations on command size?

Discussion about programs, libraries and tools that work with MicroPython. Mostly these are provided by a third party.
Target audience: All users and developers of MicroPython.
Post Reply
spierepf
Posts: 1
Joined: Mon Jul 08, 2019 3:22 pm

Websocket limitations on command size?

Post by spierepf » Mon Jul 08, 2019 3:28 pm

I am trying to send a python command to an ESP32 based board using a websocket. There appears to be a limitation on the size of the command that can be sent via websocket (the same command works fine over serial). A 351 byte command works, while a 352 byte command does not.

Has anyone else encountered this limitation? And is it possible to circumvent it?

User avatar
jimmo
Posts: 328
Joined: Tue Aug 08, 2017 1:57 am
Location: Sydney, Australia

Re: Websocket limitations on command size?

Post by jimmo » Tue Jul 09, 2019 1:06 am

Can you provide a bit more information? Doesn't sound like it, but just to confirm this is unrelated to WebREPL?
Is the issue that when you read(/readinto/readline?) from the websocket you get nothing, or truncated? Or does it fail when you try to exec it? How does it work over serial? Using the REPL or something else?
Maybe if you can share the code, that would be great.

Post Reply