AT+CWLAP : 列出附近偵測得到的基地台
注意, 此指令只能在 STA (=1) 與 BOTH (=3) 模式下才會回應, 在 AP 模式下會出現 ERROR.
AT+CWLAP
+CWLAP:(2,"edimax.setup",-71,"74:da:38:15:16:00",1)
+CWLAP:(3,"bryan",-90,"78:54:2e:26:66:28",1)
+CWLAP:(3,"TP-LINK_33C1",-86,"c4:e9:84:66:33:c1",4)
+CWLAP:(4,"ching",-84,"54:b8:0a:84:f4:70",5)
+CWLAP:(4,"HOME",-70,"04:8d:38:52:ea:f7",6)
+CWLAP:(4,"alex",-85,"fc:75:16:01:26:0c",6)
+CWLAP:(4,"andy",-85,"fc:75:16:02:61:60",6)
+CWLAP:(1,"JANE-WIRELESS",-94,"00:24:01:ad:a0:65",6)
+CWLAP:(4,"RFTQAD",-93,"c8:d3:a3:5f:d8:fd",9)
+CWLAP:(3,"TP-LINK_601A04",-73,"e8:de:27:60:1a:04",10)
+CWLAP:(4,"
EDIMAX-tony",
-44,"90:1f:02:2d:5a:9f",11) 我的基地台
+CWLAP:(3,"CHT5668",-89,"d8:fe:e3:5c:c0:fb",11)
+CWLAP:(3,"MOTOROLA-5N6F",-89,"f8:35:dd:74:d2:b6",11)
+CWLAP:(3,"45-9",-91,"d8:fe:e3:e6:90:87",11)
+CWLAP:(3,"family",-89,"6c:19:8f:b7:9a:79",1)
OK
回應訊息的格式為 : +CWLAP:(ecn,ssid,rssi,mac,mode)
第一個參數是加密方式 ecn :
0 OPEN (不加密)
1 WEP
2 WPA_PSK
3 WPA2_PSK
4 WPA_WPA2_PSK
第二個參數是服務設定識別碼 SSID (即基地台代號), 第三個是接收的射頻信號強度 (dBm), 均為負值, 越負信號越弱, 最大值是 0. 第四參數是實體位址 MAC, 第五參數據 "
More AT Command Information Found" 說是連接模式, 0 為手動 (manual), 1 為自動 (auto). 但上面測試卻有 0, 1 以外的值. 據 "
ESP8266 WiFi module" 這篇則說是 channel, 似乎較合理, 因為 CWJAP 指令也無法設定手動或自動啊!