Edit: Just committed some code. For the nonos SDK, the websocket TCP sockets should now have a timeout of 2 hours.
Edit: Just committed some code. For the nonos SDK, the websocket TCP sockets should now have a timeout of 2 hours.
Explore... Chat... Share...
Moderator: Sprite_tm
WebSocket connection to 'ws://10.0.1.3/websocket/ws.cgi' failed: Error during WebSocket handshake: 'Connection' header value is not 'Upgrade'
Sprite_tm wrote:That sounds like a bug. Can you get the data that's sent back and forth somehow? (Wireshark, dev console equivalent in Safari, ...)?
//Start the response headers.
void ICACHE_FLASH_ATTR httpdStartResponse(HttpdConnData *conn, int code) {
char buff[256];
int l;
l=sprintf(buff, "HTTP/1.%d %d OK\r\nServer: esp8266-httpd/"HTTPDVER"\r\n",
(conn->priv->flags&HFL_HTTP11)?1:0,
code);
httpdSend(conn, buff, l);
if (code != 101) {
l=sprintf(buff, "%s\r\n",
(conn->priv->flags&HFL_CHUNKED)?"Transfer-Encoding: chunked":"Connection: close");
httpdSend(conn, buff, l);
}
}
It takes about 20-25 seconds for home assistant c[…]
I tried to upgrade tof my sonoff basic R2 with the[…]
a problem Perhaps you want to define "Probl[…]
Rebooting your router will not give you a faster I[…]
There are no other notifications from esptool.py i[…]
Using the Arduino IDE, you'll learn how to set up […]
In this project, you will post to Twitter using an[…]
In this project, we will build a water level contr[…]
I guess I'm late, but I had the same problem and f[…]
Last night I received my first D1 Minis for a lear[…]
Although I am aware that this is an old post, I fe[…]