Espressif Systems
"
"
5.
AT+CWJAP_CUR – Connect to AP, for current
AT+CWJAP_CUR – Connect to AP, won't save to flash
•
•
Example
•
Command
AT+CWJAP_CUR?
+CWJAP_CUR:<ssid>, <bssid>, <channel>, <rssi>
Response
OK
Parameters
<ssid> string, AP's SSID
Command
AT+CWJAP_CUR=<ssid>, <pwd>[, <bssid>]
OK
or
Response
+CWJAP:<error code>
FAIL
<ssid>
<pwd>
[<bssid>]
<error code>
Parameters
This command requires station mode to be active.
Escape character syntax is needed if "SSID" or "password" contains any special
characters ( ' , ' or ' " 'or ' \ ')
Notes
Configuration changes will
Espressif Systems
"
AT+CWJAP_CUR ="abc", "0123456789"
If SSID is "ab\, c" and password is "0123456789"\"
AT+CWJAP_CUR="ab\\\, c", "0123456789\"\\"
If several APs have the same SSID as "abc", target AP can be found by bssid:
AT+CWJAP_CUR="abc", "0123456789", "ca:d7:19:d8:a6:44"
string, AP's SSID
string, MAX: 64 bytes ASCII
string, AP's MAC address, for several APs may have the same SSID
only for reference, it is not reliable
1 : connection timeout
2 : wrong password
3 : cannot find target AP
4 : connection failed
NOT
be stored in flash
27 73
/
ESP8266
AT Instruction Set
Friday, July 15, 2016
Need help?
Do you have a question about the ESP8266 and is the answer not in the manual?
Questions and answers