Data Sheet

!
4. Wi-Fi AT Commands
4.2.10. AT+CWSAP—Configures the ESP8266 SoftAP
[@deprecated] This command is deprecated. Please use AT+CWSAP_CUR or AT+CWSAP_DEF instead.
4.2.11. AT+CWSAP_CUR—Configures the ESP8266 SoftAP; Configuration Not Saved in the Flash
Commands
Query Command:
AT+CWSAP?
Function: to obtain the configuration parameters of the
ESP8266 SoftAP.
Set Command:
AT+CWSAP=<ssid>,<pwd>,<chl>,<ecn>[,<max󰐇
conn>][,<ssid󰐇hidden>]
Function: to configure the ESP8266 SoftAP.
Response
+CWSAP:<ssid>,<pwd>,<chl>,<ecn>,<max󰐇conn>,<ssid󰐇
hidden>
OK
or
ERROR
Parameters
<ssid>: string parameter, SSID of AP.
<pwd>: string parameter, length of password: 8 ~ 64
bytes ASCII.
<chl>: channel ID.
<ecn>: encryption method; WEP is not supported.
0: OPEN
2: WPA_PSK
3: WPA2_PSK
4: WPA_WPA2_PSK
[<max󰐇conn>]󰐇(optional): maximum number of
Stations to which ESP8266 SoftAP can be
connected; within the range of [1, 10].
[<ssid󰐇hidden>]󰐇(optional):
0: SSID is broadcasted. (the default setting)
1: SSID is not broadcasted.
The same as above.
Notice:
This command is only available when SoftAP
is active.
Note
The configuration changes will be saved in the system parameter area in the flash.
Example
AT+CWSAP="ESP8266","1234567890",5,3
Commands
Query Command:
AT+CWSAP_CUR?
Function: to obtain the configuration parameters of the
ESP8266 SoftAP.
Set Command:
AT+CWSAP_CUR=<ssid>,<pwd>,<chl>,<ecn>[,
<max󰐇conn>][,<ssid󰐇hidden>]
Function: to configure the ESP8266 SoftAP.
Response
+CWSAP_CUR:<ssid>,<pwd>,<chl>,<ecn>,<max󰐇
conn>,<ssid󰐇hidden>
OK
or
ERROR
Espressif
! /5227
2017.05