!
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>,<channel>,<ecn>,<max
conn>,<ssid hidden>
OK
•
<ssid>: string parameter, SSID of AP.
•
<pwd>: string parameter, length of password: 8
~ 64 bytes ASCII.
•
<channel>: channel ID.
•
<ecn>: encryption method; WEP is not
supported.
‣ 0: OPEN
‣ 2: WPA_PSK
‣ 3: WPA2_PSK
‣ 4: WPA_WPA2_PSK
•
[<max conn>](optional parameter): maximum
number of Stations to which ESP32 SoftAP can
be connected; within the range of [1, 10].
•
[<ssid hidden>](optional parameter):
‣ 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
17 97
!
Set Command:
AT+CWSAP=<ssid>,<pwd>,<chl>,<ecn>[
,<max conn>][,<ssid hidden>]
Function: to set the configuration of the
ESP32 SoftAP.
OK
The same as above.
⚠ Notice:
This command is only available when
SoftAP is active.
/!
4. Wi-Fi AT Commands
2019.06
Need help?
Do you have a question about the ESP32 and is the answer not in the manual?
Questions and answers