Instructions
" " ! "  
 Espressif Systems
ESP8266 
AT Instruction Set
16.
AT+CWDHCP_DEF – Enable/Disable DHCP and save to flash 
AT+ CWDHCP_DEF – Enable/Disable DHCP and save to flash
Command
AT+CWDHCP_DEF?
Response
DHCP disabled or enabled currently?
Parameters
Bit0 : 0 - soft-AP DHCP disabled 
1 - soft-AP DHCP enabled 
bit1 : 0 - station DHCP disabled 
1 - station DHCP enabled
Command
AT+CWDHCP_DEF=<mode>, <en>
Response
OK
Parameters
<mode>  
0 : set ESP8266 soft-AP 
1 : set ESP8266 station 
2 : set both softAP and station 
<en> 
0 : Disable DHCP 
1 : Enable DHCP
Notes
•
Configuration changes will be stored in flash user parameter area. 
•
This configuration interacts with static IP related AT commands (AT+CIPSTA 
related and AT+CIPAP related): 
‣
If DHCP is enabled, static IP will be disabled; 
‣
If static IP is enabled, DHCP will be disabled; 
‣
This will depend on the last configuration.
Espressif Systems   /   Friday, July 15, 201637 73










