Instructions
" " ! "
Espressif Systems
ESP8266
AT Instruction Set
15.
AT+CWDHCP_CUR – Enable/Disable DHCP
AT+ CWDHCP_CUR – Enable/Disable DHCP, won’t save to flash
Command
AT+CWDHCP_CUR?
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_CUR=<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
•
This configuration will NOT 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, 201636 73