Page 1 of 1

Websocket limitations on command size?

Posted: Mon Jul 08, 2019 3:28 pm
by spierepf
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?

Re: Websocket limitations on command size?

Posted: Tue Jul 09, 2019 1:06 am
by jimmo
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.