ESP8266 Arduino server "The connection was reset"
Posted: Wed Jul 11, 2018 1:27 am
My ESP8266 project was working fine and it stopped working, I think after the library update to 2.4.1
I am using Arduino 1.8.5 on a ESP-12E (NodeMCU 1.0) as a webserver.
A web browser always gives this error (both Firefox or Safari), and the page does not load:
"The connection was reset"
"The connection to the server was reset while the page was loading."
I rolled back to the Wiki examples, like server example sketch- which does not work.
Next, I tried this example, with the same result: Arduino/libraries/ESP8266WiFi/examples/WiFiWebServer/WiFiWebServer.ino
Serial Monitor Output:
Connecting to MyWiFiNetwork
.
WiFi connected
Server started
144.0.0.150
new client
GET / HTTP/1.1
invalid request
new client
GET / HTTP/1.1
invalid request
new client
GET / HTTP/1.1
invalid request
new client
GET / HTTP/1.1
invalid request
new client
GET / HTTP/1.1
invalid request
new client
GET / HTTP/1.1
invalid request
new client
GET / HTTP/1.1
invalid request
new client
GET / HTTP/1.1
invalid request
new client
GET / HTTP/1.1
invalid request
new client
GET / HTTP/1.1
invalid request
I'd guess a missing (new 2.4.1) function call or parameter?
Any advice or direction is appreciated.
I am using Arduino 1.8.5 on a ESP-12E (NodeMCU 1.0) as a webserver.
A web browser always gives this error (both Firefox or Safari), and the page does not load:
"The connection was reset"
"The connection to the server was reset while the page was loading."
I rolled back to the Wiki examples, like server example sketch- which does not work.
Next, I tried this example, with the same result: Arduino/libraries/ESP8266WiFi/examples/WiFiWebServer/WiFiWebServer.ino
Serial Monitor Output:
Connecting to MyWiFiNetwork
.
WiFi connected
Server started
144.0.0.150
new client
GET / HTTP/1.1
invalid request
new client
GET / HTTP/1.1
invalid request
new client
GET / HTTP/1.1
invalid request
new client
GET / HTTP/1.1
invalid request
new client
GET / HTTP/1.1
invalid request
new client
GET / HTTP/1.1
invalid request
new client
GET / HTTP/1.1
invalid request
new client
GET / HTTP/1.1
invalid request
new client
GET / HTTP/1.1
invalid request
new client
GET / HTTP/1.1
invalid request
I'd guess a missing (new 2.4.1) function call or parameter?
Any advice or direction is appreciated.