0

今天為了想利用 Scan WiFi AP 裝了4個 WiFi AP 站,
想利用 ScanNetworks AP 取得 Ameba 對各個 WiFi AP RSSI 值,
再將Ameba 與各個 WiFi AP RSSI 訊號強度來模擬 Ameba 與AP站相對可能位置。
發現: Ameba Arduino V1.0.4 所附 Examples -> AmebaWiFi ->ScanNetworks.ino

// print the network number and name for each network found:
for (int thisNet = 0; thisNet < numSsid; thisNet++) {
Serial.print(thisNet);
Serial.print(") ");
Serial.print(WiFi.SSID(thisNet));
Serial.print("\tSignal: ");
Serial.print(WiFi.RSSI(thisNet));
Serial.print(" dBm");
Serial.print("\tEncryption: ");
printEncryptionType(WiFi.encryptionType(thisNet));
}
Scan networks 時,WiFi.RSSI(thisNet)值會有前面的值未清除的異常情形

Scanning available networks...
** Scan Networks **
number of available networks:25
0) KCC-AP5-AP Signal: -58 dBm Encryption: None
1) DIR-742-AP Signal: -70 dBm Encryption: None
2) KCC-AP55800 Signal: -72 dBm Encryption: WPA2
3) CHT674652 Signal: -76 dBm Encryption: WPA2
4) ASUSON-5800 house Signal: -82 dBm Encryption: WPA2
5) klonoa9-904Hz Signal: -82 dBm Encryption: None
6) cht168l580014Cuse Signal: -84 dBm Encryption: None
7) HITRON-58001 Signal: -84 dBm Encryption: None
8) maxwell-904 house Signal: -86 dBm Encryption: WPA2
9) p16674622P4HzC Signal: -86 dBm Encryption: None
10) NBG4104-904 house Signal: -86 dBm Encryption: None
11) WBR-54922ty house Signal: -86 dBm Encryption: WPA2
12) abcdoa-580014Cuse Signal: -86 dBm Encryption: WPA2
13) iPhoneN-APy house Signal: -88 dBm Encryption: WPA2
14) 297Y137178319HOME Signal: -88 dBm Encryption: WPA2
15) KCC-VPN-APy house Signal: -88 dBm Encryption: WPA2
16) tifnay222itfishse Signal: -88 dBm Encryption: None
17) bananasplitfishse Signal: -88 dBm Encryption: None
18) 6FgohyaplitfishFe Signal: -88 dBm Encryption: WPA2
19) DSL-561178214ChA Signal: -88 dBm Encryption: WPA2
20) SEi3ish79331ishse Signal: -88 dBm Encryption: None
21) lai-561itty house Signal: -90 dBm Encryption: None
22) HadesKuntty house Signal: -92 dBm Encryption: WPA2
23) charotte.4GHzVIAe Signal: -92 dBm Encryption: WPA2
24) Hello kitty house Signal: -94 dBm Encryption: WPA2

黑體字的部分之 WiFi AP 名稱不對。

williamlai 回答了