Data Sheet
!
4. Wi-Fi AT Commands
4.2.8. AT+CWLAP—Lists Available APs
4.2.9. AT+CWQAP—Disconnects from the AP
Commands
Set Command:
AT+CWLAP=<ssid>[,<mac>,<ch>]
Function: to query the APs with specific SSID and
MAC on a specific channel.
Execute Command:
AT+CWLAP
Function: to list all available APs.
Response
+CWLAP:<ecn>,<ssid>,<rssi>,<mac>,<ch>,<freq
offset>,<freqcalibration>
OK
or
ERROR
+CWLAP:<ecn>,<ssid>,<rssi>,<mac>,<ch>,<freq
offset>,<freqcalibration>
OK
Parameters
• <ecn>: encryption method.
‣ 0: OPEN
‣ 1: WEP
‣ 2: WPA_PSK
‣ 3: WPA2_PSK
‣ 4: WPA_WPA2_PSK
‣ 5: WPA2_Enterprise (AT can NOT connect to WPA2_Enterprise AP for now.)
• <ssid>: string parameter, SSID of the AP.
• <rssi>: signal strength.
• <mac>: string parameter, MAC address of the AP.
• <freqoffset>: frequency offset of AP; unit: KHz. The value of ppm is <freqoffset>/2.4.
• <freqcalibration>: calibration for frequency offset.
Examples
AT+CWLAP="Wi-Fi","ca:d7:19:d8:a6:44",6
or search for APs with a designated SSID:
AT+CWLAP="Wi-Fi"
Execute Command
AT+CWQAP
Response
OK
Parameters
-
Espressif
! /!26 58
2017.05