Skip to main content

In my case when try to connect to my router appears:

AT+CWJAP="myssid","mypassword"
WIFI CONNECTED
+CWJAP:1

FAIL
WIFI DISCONNECT
Just ESP8266 arrive home with DHCP disabled, it needs to be enabled

just try:
AT+CWDHCP=1,1

In order to enable DHCP for STA, it returns:

OK
WIFI GOT IP