skaarj1989 / mWebSockets

WebSockets for microcontrollers
https://skaarj1989.github.io/mWebSockets/autobahn-testsuite/servers/
MIT License
108 stars 23 forks source link

Unsupported frame size #72

Closed infrafast closed 6 months ago

infrafast commented 6 months ago

Hello, using the code adapated for issue #58 ,

I got the below error message when trying to send the below Jsonframe from the browser to the esp32

Unsupported frame size = 476

followed by a: [189085][E][WiFiClient.cpp:517] flush(): fail on fd 52, errno: 11, "No more processes"

Socket Disconnected

presumably this is just because I need to increase a buffer somewhere, maybe you could help ? Thanks BR

{"command":"createModule","param":{"Module 2":{"possibleLayout":3,"currentLayout":0,"icon":"b","strips":[{"id":"ch2bus","index":0,"color":99,"icon":"Z","properties":["/ch/01/name","/bus/01/name"]},{"id":"ch2bus","index":1,"color":99,"icon":"Z","properties":["/ch/01/name","/bus/01/name"]},{"id":"ch2bus","index":2,"color":99,"icon":"Z","properties":["/ch/01/name","/bus/01/name"]},{"id":"ch2bus","index":3,"color":99,"icon":"Z","properties":["/ch/01/name","/bus/01/name"]}]}}}

skaarj1989 commented 6 months ago

Increase the buffer size (this information is in the README) https://github.com/skaarj1989/mWebSockets/blob/a4458add6b2e157581c298901a9f9a9a26f3090e/src/config.h#L30

infrafast commented 5 months ago

my god I missed that sorry for bothering. Do you have a paypal account so I can offer you a beer ?

skaarj1989 commented 5 months ago

There's no need for that, thank you though.