-
Notifications
You must be signed in to change notification settings - Fork 151
Open
Description
On esp8266 the event handler from file
lib\framework\WebSocketTxRx.h
is not passed the correct size_t len. As a result the if condition to proceed with updating the state is never executed. This works well on esp32 and I cannot figure out if its a library issue or not.
I have a json size 1365 characters but the len passed is 528.
virtual void onWSEvent(AsyncWebSocket* server,
AsyncWebSocketClient* client,
AwsEventType type,
void* arg,
uint8_t* data,
size_t len) {
if (type == WS_EVT_DATA) {
Serial.println(F("WS_EVT_DATA"));
AwsFrameInfo* info = (AwsFrameInfo*)arg;
if (info->final && info->index == 0 && info->len == len) {
lib_deps =
ArduinoJson@>=6.0.0,<7.0.0
; The following allows the use of the latest code for ESPAsyncWebServer - there hasn't been a release in a while
; Work around for https://github.com/me-no-dev/ESPAsyncWebServer/issues/1151
https://github.com/me-no-dev/ESPAsyncWebServer
;ESP Async WebServer@>=1.2.0,<2.0.0
AsyncMqttClient@>=0.9.0,<1.0.0
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels