Instructions
" " ! "
Espressif Systems
ESP8266
AT Instruction Set
14.
AT+CWDHCP – Enable/Disable DHCP
AT+ CWDHCP – Enable/Disable DHCP
[@deprecated]. Please use AT+CWDHCP_CUR or AT+CWDHCP_DEF instead.
Command
AT+CWDHCP?
Response
DHCP disabled or enabled now?
Parameters
Bit0 : 0 - soft-AP DHCP disabled
1 - soft-AP DHCP enabled
bit1 : 0 - station DHCP disabled
1 - station DHCP enabled
Command
AT+CWDHCP=<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, 201635 73