The use of the ESP8266 in the world of IoT

User avatar
By gforks
#35205 I'm attempting to use SoftAP (strictly mode 2) and open a socket server. I'm using the AT commands below:

AT+CWMODE=2
AT+CWSAP="myssid","password",1,0
AT+RST
AT+CIPMUX=1
AT+CIPSERVER=1,80

I'm able to see the SSID and "connect" to it. I'm not getting an IP though (it looks like the DHCP server is not working). And of course I'm not able to open a socket.

AT version I'm running:

AT+GMR

AT version:0.21.0.0
SDK version:0.9.5

I have tried the new 1.5.0 SDK build and have gotten the same results.
Any help would be much appreciated!
User avatar
By gforks
#35218 I found the problem and solution.

It turns out my problem was not with the ESP8266 DHCP but it was with android.
If you are using an android device apparently you do not obtain a physical IP address (since in AP or SoftAP mode only you have no internet access) until you choose the option to use AP without internet access. As soon as you connect you get "Wi-Fi ha no Internet access" alert. Touch it and on the up coming dialog check "Don't ask again for this network" and click Yes.

This fixed the issue I was having. :D
User avatar
By jead
#68559 Hello, gforks.

Thank you for sharing with us this problem/solution.
I would like to know in which Android version you have observed this problem.

Thanks in advance.