Espressif Systems
!
!
5.
AT+CWJAP_CUR – Connect to AP,for current
AT+CWJAP_CUR – Connect to AP, won't save to Flash
AT+CWJAP_CUR ="abc","0123456789"
If SSID is "ab/,c"
and password is "0123456789"/"
AT+CWJAP_CUR="ab///,c","0123456789/"//"
Example
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"
AT+CWJAP_CUR?
Command
+CWJAP_CUR:<ssid>,<bssid>,<channel>,<rssi>
Response
OK
<ssid>
Parameters
AT+CWJAP_CUR=<ssid>,<pwd>[,<bssid>]
Command
OK
or
Response
+CWJAP:<error code>
FAIL
<ssid>
<pwd>
[<bssid>]
have the same SSID
<error code>
<error code> 1
<error code> 2
Parameters
<error code> 3
<error code> 4
This command needs station mode enable.
Escape character syntax is needed if "SSID" or "password" contains
any special characters
(','、'"'and'/')
This configuration will
Notes
Espressif Systems Confidential
!
string, AP's SSID
string, AP's SSID
string, MAX: 64 bytes ASCII
string, AP's bssid(MAC address), for several APs may
only for reference,it's not reliable
connecting timeout
wrong password
can not found target AP
connect fail
not
21 54
store in Flash .
/
ESP8266
AT Instruction Set
Friday, May 22, 2015
Need help?
Do you have a question about the ESP8266 and is the answer not in the manual?
Questions and answers