User's Manual
WizFi320 User Manual
© Copyright 2021 WIZnet Co., Ltd. All rights reserved. 18
Example
AT+CWMODE=3
AT+CWSTATE: Query the Wi-Fi state and Wi-Fi
information
Query Command
Function:
Query the Wi-Fi state and Wi-Fi information of ESP devices.
Command:
AT+CWSTATE?
Response:
+CWSTATE:<state>,<"ssid">
OK
Parameters
• <state>: current Wi-Fi state.
o 0: ESP station has not started any Wi-Fi connection.
o 1: ESP station has connected to an AP, but does not get an
IPv4 address yet.
o 2: ESP station has connected to an AP, and got an IPv4
address.
o 3: ESP station is in Wi-Fi connecting or reconnecting state.
o 4: ESP station is in Wi-Fi disconnected state.
• <”ssid”>: the SSID of the target AP.
Note
• When ESP station is not connected to an AP, it is recommended to use
this command to query Wi-Fi information; after ESP station is connected
to an AP, it is recommended to use AT+CWJAP to query Wi-Fi
information.
AT+CWJAP: Connect to an AP
Query Command
Function:
Query the AP to which the ESP Station is already connected.










