Instructions

" " ! "
Espressif Systems
ESP8266
AT Instruction Set
18.
AT+CWDHCPS_DEF – Set the IP address allocated by ESP8266 soft-AP DHCP, save
to flash
This AT command is enabled when ESP8266 runs as soft-AP, and when DHCP server is running
normally. The IP address should be on the same network segment with the IP address of ESP8266
soft-AP. This configuration will be stored in flash user parameter area.!
19.
AT+CWAUTOCONN – Auto connect to AP or not
ESP8266 station will connect to AP automatically on power-up by default.!
AT+CWDHCPS_DEF – Set the IP address allocated by ESP8266 soft-AP DHCP, can be stored in
flash
Example
AT+CWDHCPS_DEF=1, 3, "192.168.4.10", "192.168.4.15"
or
AT+CWDHCPS_DEF=0 // Disable the settings and use the default IP range.
Command
AT+CWDHCPS_DEF?
Response
+CWDHCPS_DEF=<lease time>, <start IP>, <end IP>
Parameters
<enable>
0 : Disable the settings and use the default IP range.
1: Enable setting the IP range, parameters below have to be set.
<lease time> the unit of lease time is minute, range [1, 2880]
<start IP>
start IP of the IP range that can be obtained from ESP8266 soft-AP DHCP
server
<end IP>
end IP of the IP range that can be obtained from ESP8266 soft-AP DHCP
server
Command
AT+CWDHCPS_DEF=<enable>, <lease time>, <start IP>, <end IP>
Response
OK
AT+CWAUTOCONN – Connect to AP automatically or not
Example
AT+CWAUTOCONN=1
Command
AT+CWAUTOCONN=<enable>
Response
OK
Parameters
<enable>
0 : do NOT auto-connect to AP on power-up
1 : connect to AP automatically on power-up
Notes
Configuration changes will be stored in flash system parameter area.
Espressif Systems / Friday, July 15, 201639 73