-
Notifications
You must be signed in to change notification settings - Fork 575
WebSockets for AVR #874
-
After some time of struggle to get a PlatformIO sample to compile for an Arduino Mega I finally peace together by downloading the arduinoWebSockets/tree/ATmega branch and copied it to the libdeps folder. I was not able to uncover what "lib_deps = ###" to add to my platformIO.ini file to get it to automaticaly add the resource to the project.
Anyhow to the primary reason I came back here. I'm building this project on a mega because I do require the additional IO the Mega has. In a previous project on an ESP32 the payloads I receive are large and usually get split across the webSocketEvent(WStype_t WStype_FRAGMENT where I concatenate the payload back into the JSON file I expect.
It seems this libray only has the following types included
typedef enum {
WStype_ERROR,
WStype_DISCONNECTED,
WStype_CONNECTED,
WStype_TEXT,
WStype_BIN
} WStype_t;
Is there a reason for the short list?
Beta Was this translation helpful? Give feedback.