Data Sheet

!
4. Wi-Fi AT Commands
4.2.17. AT+CWDHCPS_CUR—Sets the IP Address Allocated by ESP8266 SoftAP DHCP;
Configuration Not Saved in Flash
4.2.18. AT+CWDHCPS_DEF—Sets the IP Address Allocated by ESP8266 SoftAP DHCP;
Configuration Saved in Flash
Commands
Query Command:
AT+CWDHCPS_CUR?
Set Command:
AT+CWDHCPS_CUR=<enable>,<lease󰐇time>,<start󰐇IP>,<end󰐇
IP>
Function: sets the IP address range of the ESP8266 SoftAP
DHCP server.
Response
+CWDHCPS_CUR=<lease󰐇time>,<start󰐇
IP>,<end󰐇IP>
OK
Parameters
<enable>:
0: Disable the settings and use the default IP range.
1: Enable setting the IP range, and the parameters below have to be set.
<lease󰐇time>: lease time; unit: minute; range [1, 2880].
<start󰐇IP>: start IP of the IP range that can be obtained from ESP8266 SoftAP DHCP server.
<end󰐇IP>: end IP of the IP range that can be obtained from ESP8266 SoftAP DHCP server.
Notes
The configuration changes will NOT be saved in the flash.
This AT command is enabled when ESP8266 runs as SoftAP, and when DHCP is enabled. The IP
address should be in the same network segment as the IP address of ESP8266 SoftAP.
Examples
AT+CWDHCPS_CUR=1,3,"192.168.4.10","192.168.4.15"
or
AT+CWDHCPS_CUR=0󰐇//Disable󰐇the󰐇settings󰐇and󰐇use󰐇the󰐇default󰐇IP󰐇range.
Commands
Query Command:
AT+CWDHCPS_DEF?
Set Command:
AT+CWDHCPS_DEF=<enable>,<lease󰐇time>,<start󰐇IP>,<end󰐇
IP>
Function: sets the IP address range of the ESP8266 SoftAP
DHCP server.
Response
+CWDHCPS_DEF=<lease󰐇time>,<start󰐇
IP>,<end󰐇IP>
OK
Parameters
<enable>:
0: Disable the settings and use the default IP range.
1: Enable setting the IP range, and the parameters below have to be set.
<lease󰐇time>: lease time; unit: minute; range [1, 2880].
<start󰐇IP>: start IP of the IP range that can be obtained from ESP8266 SoftAP DHCP server.
<end󰐇IP>: end IP of the IP range that can be obtained from ESP8266 SoftAP DHCP server.
Notes
The configuration changes will be stored in the user parameter area in the flash.
This AT command is enabled when ESP8266 runs as SoftAP, and when DHCP is enabled. The IP
address should be in the same network segment as the IP address of ESP8266 SoftAP.
Espressif
! /5231
2017.05