SmartDev
SmartDev
I see.. Sorry I didn't wanted to be disparging.. You did a great job with your async webServer. I'm excited day by day of your great work! I will try...
Great idea! I'm not 100% familiar with #define WEBSOCKETS_STRING (var) F(var). If I want two use the content of the address in flash.. How can I address the specific memory...
Ahh nice! :+1: Thanks for that!
Thanks for your help! Log shows 400 Bad Request.. > [WS-Client] asyncConnect... > [WS-Client] connected to 192.168.178.125:80. > [WS-Client][sendHeader] sending header... > [WS-Client][sendHeader] handshake GET /ws HTTP/1.1 > Connection: Upgrade...
Ok I've made some debug print commands in the Server WebSocket file.. The problem was in the following line: https://github.com/me-no-dev/ESPAsyncWebServer/blob/master/src/AsyncWebSocket.cpp#L867 the WS_STR_VERSION in Header (Sec-WebSocket-Version) AND the WS_STR_KEY in Header...
Hmm.. it seems that the request contains only one header: `Origin: file://` ``` if (request->method() == HTTP_GET) os_printf("GET"); else if (request->method() == HTTP_POST) os_printf("POST"); else if (request->method() == HTTP_DELETE) os_printf("DELETE");...
Thanks for your help! Now it works :+1:
Ok thanks! I've found the problem.. you forgot to initialize the flag "isSocketIO". Please add following init in "WebSocketsClient.cpp" line 79: ` _client.isSocketIO = false;` Thanks and best regards, Stephan