!
4.2.6.
AT+CWSAP—Configuration of the ESP32 SoftAP
Commands
Response
Parameters
Note
Example
Espressif
Query Command:
AT+CWSAP?
Function: to obtain the configuration parameters of the
ESP32 SoftAP.
+CWSAP:<ssid>,<pwd>,<chl>,<ecn>,<max conn>,<ssid
hidden>
<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 ESP32 SoftAP can be connected;
within the range of [1, 10].
•
[<ssid hidden>] (optional):
‣ 0: SSID is broadcast. (the default setting)
‣ 1: SSID is not broadcast.
The configuration changes will be saved in the NVS area.
AT+CWSAP="ESP32","1234567890",5,3
Set Command:
AT+CWSAP=<ssid>,<pwd>,<chl>,<ecn>[,<max
conn>][,<ssid hidden>]
Function: to list all available APs.
OK
or
ERROR
The same as above.
⚠ Notice:
This command is only available when SoftAP
is active.
15 53
!
/!
4. Wi-Fi AT Commands
2017.02
Need help?
Do you have a question about the ESP32 and is the answer not in the manual?
Questions and answers