Wi-Fi AT Command Set
AT+CWINIT : Initialize/Clean up Wi-Fi driver
AT+CWMODE : Query/Set Wi-Fi mode (Station/SoftAP/Station+SoftAP)
AT+CWSTATE : Query Wi-Fi status and information
AT+CWJAP : Connect to AP
AT+CWRECONNCFG : Query/Set Wi-Fi reconnection configuration
AT+CWLAPOPT : Set properties of AT+CWLAP command scan results
AT+CWLAP : Scan the currently available APs
AT+CWQAP : Disconnect from AP
AT+CWSAP : Configure w800 SoftAP parameters
AT+CWLIF : Query Station information connected to w800 SoftAP
AT+CWQIF : Disconnect Station from | Equipment Name | SoftAP
AT+CWDHCP : Enable/Disable DHCP
AT+CWDHCPS : Query/Set | Equipment Name | SoftAP DHCP Assigned IPv4 Address Range
AT+CWAUTOCONN : Does it automatically connect to the AP when powered on
AT+CWAPPROTO : Query/Set the 802.11 b/g/n protocol standard in SoftAP mode
AT+CWSTAPROTO : Set the 802.11 b/g/n protocol standard in Station mode
AT+CIPSTAMAC : Query/Set | Equipment Name | Station’s MAC Address
AT+CIPAPMAC : Query/Set | Equipment Name | SoftAP MAC Address
AT+CIPSTA : Query/Set the IP address of | Equipment Name | Station
AT+CIPAP : Query/Set | Equipment Name | SoftAP IP Address
AT+CWSTARTSMART(Not supported): Enable SmartConfig
AT+CWSTOPSMART(Not supported) : Stop SmartConfig
AT+WPS(Not supported) : Set WPS function
AT+MDNS(Not supported) : Set mDNS function
AT+CWJEAP(Not supported) : Connect to WPA2 Enterprise AP
AT+CWHOSTNAME : Query/Set | Equipment Name | Station’s Host Name
AT+CWCOUNTRY : Query/Set Wi-Fi Country Code
AT+CWINIT: Initialize/Clean up Wi-Fi driver
Query command
Function:
Query | Equipment Name | Wi-Fi initialization status of the device
Command:
AT+CWINIT?
Response:
+CWINIT:<init>
OK
Set command
Function:
Initialize or clean the Wi-Fi driver for | Equipment Name | device
Command:
AT+CWINIT=<init>
Response:
OK
Parameters
<init>:
0: Clean up Wi-Fi drivers
1: Initialize Wi-Fi driver (default value)
Note
This setting will not be saved to flash, and will be restored to the default value of 1 after restarting.
When you run out of RAM resources, you can use this command to clean up Wi-Fi drivers and free up RAM resources without using Wi-Fi.
Examples
// Clean Wi-Fi drivers
AT+CWINIT=0
AT+CWMODE: Query/Set Wi-Fi mode (Station/SoftAP/Station+SoftAP)
Query command
Function:
Query | Equipment Name | Wi-Fi mode of the device
Command:
AT+CWMODE?
Response:
+CWMODE:<mode>
OK
Set command
Function:
Set | Equipment Name | Wi-Fi mode of the device Command:
AT+CWMODE=<mode>[,<auto_connect>]
Response:
OK
Parameters
<mode>: Mode
0: No Wi-Fi mode and Wi-Fi RF turned off
1: Station mode
2: SoftAP mode
3: SoftAP+Station mode
<auto_connect>: When switching the Wi-Fi mode of the w800 device (for example, switching from SoftAP or no Wi-Fi mode to Station mode or SoftAP+Station mode) whether to enable the automatic connection function to the AP, default value: 1. When the parameter is set to default, the default value is used, which means it can automatically connect.
0: Disable automatic connection to AP function
1: Enable the automatic connection function to the AP. If the configuration for automatic connection to the AP has been saved to flash before, the w800 device will automatically connect to the AP
Note
If AT+SYSSTORE=1, this setting will be saved in the NVS partition
When switching back to Station mode with AT+CWMODE=1 , Wi-Fi will automatically connect by default
Examples
AT+CWMODE=1
AT+CWSTATE: Query Wi-Fi status and information
Query command
Function:
Query | Equipment Name | Wi-Fi status and information of the device
Command:
AT+CWSTATE?
Response:
+CWSTATE:<state>,<"ssid">
OK
Parameters
<state>: Current Wi-Fi status
0: w800 Station has not yet established any Wi-Fi connection
1: w800 Station has connected to the AP, but has not yet obtained an IPv4 address
2: w800 Station has connected to the AP and obtained an IPv4 address
3: w800 Station is currently undergoing Wi-Fi connection or Wi-Fi reconnection
4: w800 Station is in Wi-Fi disconnected state
<”ssid”>: SSID of the target AP
Note
When the w800 Station is not connected to the AP, it is recommended to use this command to query Wi-Fi information; After the w800 Station is connected to the AP, it is recommended to use the AT+CWJAP command to query Wi-Fi information
AT+CWJAP: Connect to AP
Query command
Function:
Query the AP information connected to | Equipment Name | Station
Command:
AT+CWJAP?
Response:
+CWJAP:<ssid>,<bssid>,<channel>,<rssi>,<pci_en>,<reconn_interval>,<listen_interval>,<scan_mode>,<pmf>
OK
Set command
Function:
Set the AP that | Equipment Name | Station needs to connect to
Command:
AT+CWJAP=<ssid>,<pwd>[,<bssid>][,<pci_en>][,<reconn_interval>][,<listen_interval>][,<scan_mode>][,<jap_timeout>][,<pmf>]
Response:
WIFI CONNECTED
OK
WIFI GOT IP
[WIFI GOT IPv6 LL]
[WIFI GOT IPv6 GL]
or
ERROR
orExecute command
Function:
Connect | Equipment Name | Station to the AP in the previous Wi-Fi configuration
Command:
AT+CWJAP
Response:
WIFI CONNECTED
OK
WIFI GOT IP
[WIFI GOT IPv6 LL]
[WIFI GOT IPv6 GL]
or
ERROR
Parameters
<ssid>: SSID of the target AP
If there are special characters such as
,
,"
and\\
in the SSID and password, they need to be escapedAT supports connecting to APs with Chinese SSID, but some routers or hotspots have Chinese SSID that are not in UTF-8 encoding format. You can scan the SSID first, and then use the scanned SSID to connect.
<pwd> : maximum of 63 bytes in ASCII
<bssid> : MAC address of the target AP, required when multiple APs have the same SSID
<channel> : Channel number
<rssi> : Signal strength
<pci_en> : PCI certification
0: w800 Station can connect to any type of encryption method, including OPEN and WEP
1: w800 Station can connect to any type of encryption method except OPEN and WEP
<reconn_interval>: Wi-Fi reconnection interval, in seconds, default value: 1, maximum value: 7200
0 : w800 Station will not reconnect to AP after disconnection
[1,7200]: w800 Station will reconnect to the AP at the specified interval after disconnection
<listen_interval>: Interval for listening to AP beacons, in units of AP beacon intervals, default value: 3, range: [1,100]
<scan_mode> : Scan mode
0: Fast scan, terminates after finding the target AP, w800 Station connects to the first detected AP
1: Full channel scan, terminates after scanning all channels, w800 Station connects to the AP with the strongest signal
<jap_timeout> : Maximum timeout value for AT+CWJAP command, in seconds, default value: 15, range: [3,600]
<pmf>: PMF (Protected Management Frames), default value: 1
0 : PMF disabled
bit 0: Indicates support for PMF, w800 device will prefer to connect in PMF mode if other devices also support PMF
bit 1: Indicates requirement for PMF, device will not associate with devices that do not support PMF
Note
If AT+SYSSTORE=1, configuration changes will be saved to the NVS partition
Station mode must be enabled to use this command
When w800 station is connected to an AP, it is recommended to use this command to query Wi-Fi information; when w800 Station is not connected to an AP, it is recommended to use AT+CWSTATE command to query Wi-Fi information
The
<reconn_interval>
parameter in this command is the same as the<interval_second>``parameter in the :ref:`AT+CWRECONNCFG <cmd-RECONNCFG>` command. If the ``<reconn_interval>
parameter is not set when this command is executed, the default Wi-Fi reconnection interval of 1 will be usedIf both
<ssid>
and<password>
parameters are omitted, the last set values will be usedThe timeout for executing the command and setting the command is the same, with a default value of 15 seconds, which can be set by the
<jap_timeout>
parameterTo obtain an IPv6 address, AT+CIPV6=1 must be set first
The response
OK
indicates that the IPv4 network is ready, but does not indicate that the IPv6 network is ready. Currently, WinnerMicro-AT prioritizes the IPv4 network, with the IPv6 network as a secondary optionWIFI GOT IPv6 LL
indicates that a local link IPv6 address has been obtained, which is calculated locally using EUI-64 and does not require router involvement. Due to parallel timing,this print may appear before or afterOK
WIFI GOT IPv6 GL
indicates that a global IPv6 address has been obtained, which is a combination of the prefix issued by the AP and the suffix calculated internally, requiring router involvement. Due to parallel timing, this print may appear before or afterOK
; it may also not be printed if the AP does not support IPv6
Examples
// If the SSID of the target AP is "WinnerMicro_WiFi" and the password is "12345678", the command is:
AT+CWJAP="WinnerMicro_WiFi","12345678"
// If multiple APs have the same SSID "WinnerMicro-WiFi", the target AP can be found through BSSID:
AT+CWJAP="WinnerMicro_WiFi","12345678","28:6d:cd:55:e5:7b"
AT+CWRECONNCFG: Query/Set Wi-Fi reconnection configuration
Query command
Function:
Query Wi-Fi reconnection configuration
Command:
AT+CWRECONNCFG?
Response:
+CWRECONNCFG:<interval_second>,<repeat_count>
OK
Set command
Function:
Set Wi-Fi reconnection configuration
Command:
AT+CWRECONNCFG=<interval_second>,<repeat_count>
Response:
OK
Parameters
<interval_second>: Wi-Fi reconnection interval, unit: seconds, default value: 0, maximum value 7200
0 : After disconnecting, | Equipment Name | Station does not reconnect to AP
[1,7200]: After disconnecting, | Equipment Name | Station reconnects with AP every specified time
<repeat_count> : The number of times the w800 device attempts to reconnect to the AP, this parameter is valid when
<interval_second>
is not 0, default value: 0, maximum value: 10000 : w800 Station always tries to connect to AP
[1,1000]: w800 Station will reconnect to the AP according to the specified number of times in this parameter
Examples
// w800 Station attempts to reconnect to the AP every 1 second for a total of 100 attempts AT+CWRECONNCFG=1,100 // w800 Station does not reconnect to AP after disconnecting AT+CWRECONNCFG=0,0
Note
The
<interval_second>
parameter in this command is the same as the[<reconn_interval>]
parameter in: AT+CWJAPThis command is suitable for passive disconnection of AP, Wi Fi mode switching, and automatic Wi Fi connection after power on
AT+CWLAPOPT: et properties of AT+CWLAP command scan results
Set command
Command:
AT+CWLAPOPT=<print mask>[,<rssi filter>][,<authmode mask>]
Response:
OK
or者
ERROR
Parameters
<print mask>: AT+CWLAP Whether the scanning result displays the following parameters, default value: 0x1FF. If the bit is set to 1, the corresponding parameter is displayed. If set to 0, the corresponding parameter is not displayed
bit 0: Whether to display <ecn>
bit 1: Whether to display <ssid>
bit 2: Whether to display <rssi>
bit 3: Whether to display <mac>
bit 4: Whether to display <channel>
bit 5: Whether to display <pairwise_cipher>
bit 6: Whether to display <group_cipher>
bit 7: Whether to display <bgn>
bit 8: Whether to display <wps>
[<rssi filter>] : Whether the scanning results of AT+CWLAP are filtered according to this parameter, that is, whether APs with signal strength lower than the
rssi filter
parameter value are filtered out, unit: dBm, default value: -100, range: [-100,40][<authmode mask>]: The scanning result of AT+CWLAP should be displayed with the following authentication method, default value: 0xFFFF. If
bit x
is set to 1, the corresponding authentication method will be displayed. If set to 0, it will not be displayedbit 0: Whether to display the AP with
OPEN
authentication methodbit 1: Whether to display the AP with
WEP
authentication methodbit 2: Whether to display the AP with
WPA_PSK
authentication methodbit 3: Whether to display the AP with
WPA2_PSK
authentication methodbit 4: Whether to display the AP with
WPA_WPA2_PSK
authentication methodbit 5: Whether to display the AP with
WPA2_ENTERPRISE
authentication methodbit 6: Whether to display the AP with
WPA3_PSK
authentication methodbit 7: Whether to display the AP with
WAPI_PSK
authentication methodbit 8: Whether to display the AP with
WPA2_WPA3_PSK
authentication methodbit 9: Whether to display the AP with
OWE
authentication method
Examples
// 第一个参数为 31,即 0x1F,表示所有值为 1 的 bit 对应的参数都会显示出来
AT+CWLAPOPT=31
AT+CWLAP
// 只显示认证方式为 OPEN 的 AP
AT+CWLAPOPT=31,-100,1
AT+CWLAP
AT+CWLAP: Scan the currently available APs
Set command
Function:
List APs that meet specific criteria, such as specifying SSID, MAC address, or channel number
Command:
AT+CWLAP=[<ssid>,<mac>,<channel>,<scan_type>,<scan_time_min>,<scan_time_max>]
orExecute command
Function:
List the currently available APs
Command:
AT+CWLAP
Response:
+CWLAP:<ecn>,<ssid>,<rssi>,<mac>,<channel>,<pairwise_cipher>,<group_cipher>,<bgn>,<wps>
OK
Parameters
<ecn>: Encryption method
0: OPEN
1: WEP
2: WPA_PSK
3: WPA2_PSK
4: WPA_WPA2_PSK
5: WPA2_ENTERPRISE
6: WPA3_PSK
7: WAPI_PSK
8: WPA2_WPA3_PSK
9: OWE
<ssid> : String parameter, SSID of AP
<rssi> : Signal strength
<mac> : String parameter, MAC address of AP
<channel> : Channel number
<scan_type>: Wi Fi scan type, default value: 0
0: Active scanning
1: Passive scanning
<scan_time_min>: Minimum scanning time for each channel, unit: milliseconds, range: [0,1500]. If the scanning type is passive scanning, this parameter is invalid
<scan_time_max>: Maximum scanning time for each channel, unit: milliseconds, range: [0,1500], if set to 0, firmware uses default parameter values, active scanning is 120 ms, passive scanning is 360 ms
<pairwise_cipher>: Paired encryption type
0: None
1: WEP40
2: WEP104
3: TKIP
4: CCMP
5: TKIP and CCMP
6: AES-CMAC-128
7: Unknown
<group_cipher>: Group encryption type, with the same enumeration value as the
<pairwise_cipher>
parameter<bgn> : 802.11 b/g/n, if the bit is set to 1, it means the corresponding mode is enabled, if set to 0, it means the corresponding mode is disabled
bit 0: Enable 802.11b mode or not
bit 1: Is 802.11g mode enabled
bit 2: Is 802.11n mode enabled
<wps>: wps flag
0: Does not support WPS
1: Support WPS
Examples
AT+CWLAP="WinnerMicro_WiFi","42:c1:82:80:2a:15",6,0
// Find the AP with the specified SSID
AT+CWLAP="WinnerMicro_WiFi"
AT+CWQAP: Disconnect from AP
orExecute command
Command:
AT+CWQAP
Response:
OK
AT+CWSAP: Configure w800 SoftAP parameters
Query command
Function:
Query the configuration parameters of | Equipment Name | SoftAP
Command:
AT+CWSAP?
Response:
+CWSAP:<ssid>,<pwd>,<channel>,<ecn>,<max conn>,<ssid hidden>
OK
Set command
Function:
Set | Equipment Name | SoftAP configuration parameters
Command:
AT+CWSAP=<ssid>,<pwd>,<chl>,<ecn>[,<max conn>][,<ssid hidden>]
Response:
OK
Parameters
<ssid> : String parameter, access point name
<pwd> : String parameter, password, range: 8~63 bytes ASCII
<channel>: Channel number
<ecn> : Encryption method, does not support WEP
0: OPEN
2: WPA_PSK
3: WPA2_PSK
4: WPA_WPA2_PSK
[<max conn>] : The maximum number of stations allowed to connect to w800 SoftAP , with a range of values as follows: refer to To be done with a description of max_connection.
[<ssid hidden>]:
0: Broadcast SSID (default)
1: Do not broadcast SSID
Note
If AT+SYSSTORE=1, configuration changes will be saved in the NVS partition
This instruction is only valid when AT+CWMODE=2 or AT+CWMODE=3
The default SSID varies by device as it is composed of the device’s MAC address. You can use AT+CWSAP? command to query the default SSID.
Examples
AT+CWSAP="WinnerMicro_WiFi","12345678",5,3
AT+CWLIF: Query Station information connected to w800 SoftAP
orExecute command
Command:
AT+CWLIF
Response:
+CWLIF:<ip addr>,<mac>
OK
Parameters
<ip addr>: IP address of the Station connected to w800 SoftAP
<mac> : MAC address of the Station connected to w800 SoftAP
Note
This command cannot query static IP addresses and is only valid when both w800 SoftAP and the connected station DHCP are enabled
AT+CWQIF: Disconnect Station from | Equipment Name | SoftAP
orExecute command
Function:
Disconnect all stations connected to | Equipment Name | SoftAP
Command:
AT+CWQIF
Response:
OK
Set command
Function:
Disconnect a station connected to | Equipment Name | SoftAP
Command:
AT+CWQIF=<mac>
Response:
OK
Parameters
<mac>: The MAC address of the station that needs to be disconnected
AT+CWDHCP: Enable/Disable DHCP
Query command
Command:
AT+CWDHCP?
Response:
+CWDHCP:<state>
OK
Set command
Function:
Enable/Disable DHCP
Command:
AT+CWDHCP=<operate>,<mode>
Response:
OK
Parameters
<operate>:
0: Disable
1: Enable
<mode>:
Bit0: DHCP for Station
Bit1: DHCP for SoftAP
<state>: DHCP status
Bit0:
0: Disable DHCP for Station
1: Enable DHCP for Station
Bit1:
0: Disable DHCP for SoftAP
1: Enable DHCP for SoftAP
Bit2:
0: Disable DHCP for Ethernet
1: Enable DHCP for Ethernet
Note
If AT+SYSSTORE=1, configuration changes will be saved to the NVS partition
This setting command and the command to set a static IPv4 address will interact with each other, for example: AT+CIPSTA
If static IPv4 address is enabled, DHCP will be automatically disabled
If DHCP is enabled, static IPv4 addresses will be automatically disabled
The last configuration will overwrite the previous configuration
Examples
// Enable Station DHCP. If the original DHCP mode was 2, the current DHCP mode is 3
AT+CWDHCP=1,1
// Disable SoftAP DHCP. If the original DHCP mode was 3, the current DHCP mode is 1
AT+CWDHCP=0,2
AT+CWDHCPS: Query | Equipment Name | SoftAP DHCP Assigned IPv4 Address Range
Query command
Command:
AT+CWDHCPS?
Response:
+CWDHCPS=<lease time>,<begin IP>,<end IP>
OK
Parameters
<lease time>: lease time, unit: minute, value range:[1,7200]
<begin IP> : Start IP of IPv4 address pool for SoftAP DHCP server of w800
<end IP> : End IP of IPv4 address pool for SoftAP DHCP server of w800
Note
If AT+SYSSTORE=1, configuration changes will be saved to the NVS partition
This command must be enabled in w800 SoftAP mode and used with DHCP server enabled
The IPv4 address range set must be in the same network segment as w800 SoftAP
Tip
If you want to change the DHCP range of SoftAP, you can use AT+CIPAP=<”ip”>[,<”gateway”>,<”netmask”>] To change the IP address of SoftAP, and then open SoftAP to change the range of DHCP
AT+CWAUTOCONN: Does it automatically connect to the AP when powered on
Set command
Command:
AT+CWAUTOCONN=<enable>
Response:
OK
Parameters
<enable>:
1: Power on automatically connect to AP (default)
0: Power on does not automatically connect to AP
Note
Save this setting to the NVS area
Examples
AT+CWAUTOCONN=1
AT+CWAPPROTO: Query/Set the 802.11 b/g/n protocol standard in SoftAP mode
Query command
Command:
AT+CWAPPROTO?
Response:
+CWAPPROTO=<protocol>
OK
Set command
Command:
AT+CWAPPROTO=<protocol>
Response:
OK
Parameters
<protocol>:
bit0: 802.11b protocol standard
bit1: 802.11g protocol standard
bit2: 802.11n protocol standard
bit3: 802.11ax protocol standard
Note
Currently, the PHY modes supported by w800 device are as follows: Pending Wi-Fi protocol mode
By default, the PHY mode of the w800 device is 802.11bgn mode
AT+CWSTAPROTO: Set the 802.11 b/g/n protocol standard in Station mode
Query command
Command:
AT+CWSTAPROTO?
Response:
+CWSTAPROTO=<protocol>
OK
Set command
Command:
AT+CWSTAPROTO=<protocol>
Response:
OK
Parameters
<protocol>:
Note
Currently, the PHY modes supported by w800 device are as follows: Pending Wi-Fi protocol mode
By default, the PHY mode of the w800 device is 802.11bgn mode
AT+CIPSTAMAC: Query/Set | Equipment Name | Station’s MAC Address
Query command
Function:
Query the MAC address of | Equipment Name | Station
Command:
AT+CIPSTAMAC?
Response:
+CIPSTAMAC:<mac>
OK
Set command
Function:
Set the MAC address of | Equipment Name | Station
Command:
AT+CIPSTAMAC=<mac>
Response:
OK
Parameters
<mac>: String parameter representing the MAC address of | Equipment Name | Station
Note
If AT+SYSSTORE=1, configuration changes will be saved to the NVS partition.
The MAC address of w800 Station is different from w800 SoftAP, do not set the same MAC address for both.
The Bit 0 of the MAC address cannot be 1. For example, the MAC address can be “18:…” but not “15:…”.
FF:FF:FF:FF:FF:FF and 00:00:00:00:00:00 are invalid addresses and cannot be set.
Examples
AT+CIPSTAMAC="18:6d:cd:55:e5:7b"
AT+CIPAPMAC: Query/Set | Equipment Name | SoftAP MAC Address
Query command
Function:
Query the MAC address of w800 SoftAP.
Command:
AT+CIPAPMAC?
Response:
+CIPAPMAC:<mac>
OK
Set command
Function:
Set the MAC address of w800 SoftAP.
Command:
AT+CIPAPMAC=<mac>
Response:
OK
Parameters
<mac>: String parameter representing the MAC address of w800 SoftAP
Note
If AT+SYSSTORE=1, configuration changes will be saved to the NVS partition.
The MAC address of w800 is different from w800 Station, do not set the same MAC address for both.
The Bit 0 of the MAC address cannot be 1. For example, the MAC address can be “18:…”, but not “15:…”.
FF:FF:FF:FF:FF:FF and 00:00:00:00:00:00 are invalid addresses and cannot be set.
Examples
AT+CIPAPMAC="18:fe:35:98:d3:7b"
AT+CIPSTA: Query/Set the IP address of | Equipment Name | Station
Query command
Function:
Query the IP address of w800 Station.
Command:
AT+CIPSTA?
Response:
+CIPSTA:ip:<"ip">
+CIPSTA:gateway:<"gateway">
+CIPSTA:netmask:<"netmask">
OK
Set command
Function:
Set the IPv4 address of w800 Station.
Command:
AT+CIPSTA=<"ip">[,<"gateway">,<"netmask">]
Response:
OK
Parameters
<”ip”> : String parameter representing the IPv4 address of w800 Station.
<”gateway”>: Gateway.
<”netmask”>: Subnet mask.
Note
If AT+SYSSTORE=1, configuration changes will be saved to the NVS partition.
When using the query command, the IP address of w800 Station can only be queried if it is connected to the AP or if the static IP address has been configured.
This setting command interacts with the command to set DHCP, such as AT+CWDHCP
If a static IPv4 address is enabled, DHCP is automatically disabled.
If DHCP is enabled, the static IPv4 address is automatically disabled..
The last configuration overrides the previous configuration.
Examples
AT+CIPSTA="192.168.6.100","192.168.6.1","255.255.255.0"
AT+CIPAP: Query/Set | Equipment Name | SoftAP IP Address
Query command
Function:
Query the IP address of w800 SoftAP.
Command:
AT+CIPAP?
Response:
+CIPAP:ip:<"ip">
+CIPAP:gateway:<"gateway">
+CIPAP:netmask:<"netmask">
OK
Set command
Function:
Set the IPv4 address of w800 SoftAP.
Command:
AT+CIPAP=<"ip">[,<"gateway">,<"netmask">]
Response:
OK
Parameters
<”ip”> : String parameter representing the IPv4 address of w800 SoftAP.
<”gateway”>: Gateway.
<”netmask”>: Subnet mask.
Note
If AT+SYSSTORE=1, configuration changes will be saved to the NVS partition.
This setting command applies only to IPv4 networks, not to IPv6 networks.
Examples
AT+CIPAP="192.168.5.1","192.168.5.1","255.255.255.0"
AT+CWSTARTSMART(Not supported): Enable SmartConfig
AT+CWSTOPSMART(Not supported): Stop SmartConfig
AT+WPS(Not supported) : Set WPS function
AT+MDNS(Not supported) : Set mDNS function
AT+CWJEAP(Not supported): Connect to WPA2 Enterprise AP
AT+CWHOSTNAME: Query/Set | Equipment Name | Station’s Host Name
Query command
Function:
Query w800 Station host name
Command:
AT+CWHOSTNAME?
Response:
+CWHOSTNAME:<hostname>
OK
Set command
Function:
Set the host name of w800 Station
Command:
AT+CWHOSTNAME=<hostname>
Response:
OK
If Station mode is not enabled, returns:
CMD PARSE ERR
Parameters
<hostname>: Host name of w800 Station, maximum length: 32 bytes.
Note
Configuration changes are not saved to flash.
Examples
AT+CWMODE=3
AT+CWHOSTNAME="WinnerMicro_WiFi"
AT+CWCOUNTRY: Query/Set Wi-Fi Country Code
Query command
Function:
Query Wi-Fi country code
Command:
AT+CWCOUNTRY?
Response:
+CWCOUNTRY:<country_code>,<start_channel>,<total_channel_count>
OK
Set command
Function:
Set Wi-Fi country code
Command:
AT+CWCOUNTRY=<country_code>,<start_channel>,<total_channel_count>
Response:
OK
Parameters
<country_code> : Country code, maximum length: 3 characters, refer to ISO 3166-1 alpha-2 standard for country codes.
<start_channel> : Starting channel, range: [1,14].
<total_channel_count>: Total number of channels.
Note
For detailed information, refer to: Wi-Fi Country/Region Codes.
Configuration changes are not saved to flash.
Examples
AT+CWMODE=3
AT+CWCOUNTRY="CN",1,13