-
Notifications
You must be signed in to change notification settings - Fork 554
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
websockets packet size limited to 2930 bytes #85
Comments
the full message is send via one write call. at the first look i only find it for write_P / PGM_P: for ASYNC I have implemented it: will take a deeper look at the weekend. for the arduinoWebSockets it make no difference if the data is received in one TCP packet or if it splittet over multible ones. you will get one API call for one websocket message independent of the TCP packets needed. |
Any news on this issue? |
https://github.com/Links2004/arduinoWebSockets/commits/write_big_data |
|
- removed mDNS support as the old version is broken (probably temporary) - added CTRL-Z to "connected to Neato" so that all outgoing repsonses are terminated by CTRL-Z - improved website client - removed 1300 character per message restriction after bug was fixed in arduinoWebSockets (Links2004/arduinoWebSockets#85)
marvinroger/async-mqtt-client#74 (comment) works for me |
I have observed that my JSON encoded data gets silently corrupted if the packet size is bigger then 2930 bytes. for demonstration i wrote the following sketch:
discussing this issue on gitter, MeNoDev explained:
That is so because that is the maximum size usually for the first outgoing window in order for it to send larger packets, you need to split them into MTU chunks and send when it's possible there is a bit more to that if you want to get the transmission as a single message on the other end.
/me has hoped, that arduinoWebSockets would handle this. no?
The text was updated successfully, but these errors were encountered: