Query the Wi-Fi mode of ESP devices.
Command:
AT+CWMODE?
Response:
+CWMODE:<mode>
OK
Set Command
Function:
Set the Wi-Fi mode of ESP devices.
Command:
AT+CWMODE=<mode>[,<auto_connect>]
Response:
OK
Parameters
<mode>:
•
o
o
o
o
<auto_connect>: Enable or disable automatic connection to an AP when
•
you change the mode of the ESP device from the SoftAP mode or null
mode to the station mode or the SoftAP+Station mode. Default: 1. If you
omit the parameter, the default value will be used, i.e. automatically
connecting to an AP.
o
o
Note
•
The configuration changes will be saved in the NVS area
if AT+SYSSTORE=1.
© Copyright 2021 WIZnet Co., Ltd. All rights reserved.
0: Null mode. Wi-Fi RF will be disabled.
1: Station mode.
2: SoftAP mode.
3: SoftAP+Station mode.
0: The ESP device will not automatically connect to an AP.
1: The ESP device will automatically connect to an AP if the
configuration to connect to the AP has already been saved in
flash before.
WizFi320 User Manual
17