Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

WebSockets for AVR #874

cpapplefamily started this conversation in General
Discussion options

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?

You must be logged in to vote

Replies: 0 comments

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant

AltStyle によって変換されたページ (->オリジナル) /