ESP8266 takes long time to connect

Viewed 6594

I am using an ESP8266 for a project which requires the ESP to establish a connection to the Access Point , with as less delay as possible, but as of now it takes a minimum of 4-5 mins for establishing the connection which is too much delay. I have tried to set a static ip, gateway, subnet and DNS by passing them as parameter to WiFi.config() function, still no success. Would someone help me regarding this issue ?

3 Answers

Ensure access point frequency is 2.4Ghz (not 5Ghz). This will cause prolonged connection time (never connecting).

"The ESP8266 is not designed for 5 GHz." Source

NodeMCU V1.0 (as pictured) uses an ESP8266's (ESP-12E) chip, Antenna is configured for 2.4 Ghz only. enter image description here

I think the library <ESP8266WiFi.h> you are using have problems, you can use older versions of it.

Related