User's Manual

WizFi320 User Manual
© Copyright 2021 WIZnet Co., Ltd. All rights reserved. 30
Parameters
<operate>:
o 0: disable
o 1: enable
<mode>:
o Bit0: Station DHCP
o Bit1: SoftAP DHCP
<state>: the status of DHCP
o Bit0:
0: Station DHCP is disabled.
1: Station DHCP is enabled.
o Bit1:
0: SoftAP DHCP is disabled.
1: SoftAP DHCP is enabled.
o Bit2 (ESP32 only):
0: Ethernet DHCP is disabled.
1: Ethernet DHCP is enabled.
Notes
The configuration changes will be saved in the NVS area
if AT+SYSSTORE=1.
This Set Command correlates with the commands that set static IP, such
as AT+CIPSTA and AT+CIPAP:
o If DHCP is enabled, static IP address will be disabled;
o If static IP address is enabled, DHCP will be disabled;
o The last configuration overwrites the previous configuration.
Example
// Enable Station DHCP. If the last DHCP mode is 2, the current DHCP mode will be 3.
AT+CWDHCP=1,1
// Disable SoftAP DHCP. If the last DHCP mode is 3, the current DHCP mode will be 1.
AT+CWDHCP=0,2
AT+CWDHCPS: Query/Set the IP Addresses
Allocated by an ESP SoftAP DHCP Server
Query Command
Command:
AT+CWDHCPS?
Response: