Instructions
" " ! "  
 Espressif Systems
ESP8266 
AT Instruction Set
12.
AT+CWSAP_DEF – Default config of softAP mode 
AT+ CWSAP_DEF – Set configuration of softAP mode, save to flash
Example
AT+CWSAP_DEF="ESP8266", "1234567890", 5, 3
Command
AT+CWSAP_DEF?
Response
+CWSAP_DEF:<ssid>, <pwd>, <chl>, <ecn>, <max conn>, <ssid hidden>
Parameters
The same as below. 
Command
AT+CWSAP_DEF=<ssid>, <pwd>, <chl>, <ecn>[, <max conn>][, <ssid 
hidden>]
Response
OK 
or 
ERROR // wrong parameter
Parameters
<ssid> string, ESP8266 softAP’s SSID 
<pwd> string, range: 8 ~ 64 bytes ASCII 
<chl> channel ID 
<ecn>  
0 : OPEN 
2 : WPA_PSK 
3 : WPA2_PSK 
4 : WPA_WPA2_PSK 
[<max conn>], optional, default is 4 
 maximum count of stations that are allowed to connect to ESP8266 soft-AP 
 range: [1, 4] 
[<ssid hidden>], optional, broadcast SSID by default 
 0 : broadcast SSID of ESP8266 soft-AP 
 1 : do not broadcast SSID of ESP8266 soft-AP
Notes
This command is only available when softAP is active. 
ESP8266 softAP does not support WEP. 
Configuration changes will be stored in flash system parameter area.
Espressif Systems   /   Friday, July 15, 201633 73










