Closed AyurM closed 2 years ago
FWIW, I had this exact issue when I had a malformed printf
in my WStype_CONNECTED
handler
Error was caused by this line in WebSocketsServer.cpp: DEBUG_WEBSOCKETS("[WS-Server][%d][handleHeader] - cExtensions: %s\n", client->num, client->cExtensions.c_str());
This problem happens when ESP8266 tries to establish websocket client connection with ESP8266 websocket server. Server is in SoftAP mode, debug port "Serial" is selected and debug level is "CORE + WI-FI + HTTP_UPDATE + UPDATER + OTA + OOM". Here is serial port debug output from server:
Decoded stack:
This exception doesn't happen when debugging is disabled in Websockets.h:
//#define DEBUG_WEBSOCKETS(...) DEBUG_ESP_PORT.printf(__VA_ARGS__)