mirror of
https://github.com/arduino/Arduino.git
synced 2024-12-03 14:24:15 +01:00
Re-formatted ScanNetworks output
This commit is contained in:
parent
d09655d478
commit
71ee20314f
@ -10,7 +10,7 @@
|
|||||||
|
|
||||||
created 13 July 2010
|
created 13 July 2010
|
||||||
by dlf (Metodo2 srl)
|
by dlf (Metodo2 srl)
|
||||||
modified 9 Mar 2012
|
modified 12 Mar 2012
|
||||||
by Tom Igoe
|
by Tom Igoe
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@ -26,7 +26,6 @@ void setup() {
|
|||||||
Serial.println("Initializing Wifi...");
|
Serial.println("Initializing Wifi...");
|
||||||
printMacAddress();
|
printMacAddress();
|
||||||
|
|
||||||
|
|
||||||
// scan for existing networks:
|
// scan for existing networks:
|
||||||
Serial.println("Scanning available networks...");
|
Serial.println("Scanning available networks...");
|
||||||
listNetworks();
|
listNetworks();
|
||||||
@ -72,13 +71,12 @@ void listNetworks() {
|
|||||||
for (int thisNet = 0; thisNet<numSsid; thisNet++) {
|
for (int thisNet = 0; thisNet<numSsid; thisNet++) {
|
||||||
Serial.print(thisNet);
|
Serial.print(thisNet);
|
||||||
Serial.print(") ");
|
Serial.print(") ");
|
||||||
Serial.println(WiFi.SSID(thisNet));
|
Serial.print(WiFi.SSID(thisNet));
|
||||||
Serial.print("Signal Strength: ");
|
Serial.print("\tSignal: ");
|
||||||
Serial.print(WiFi.RSSI(thisNet));
|
Serial.print(WiFi.RSSI(thisNet));
|
||||||
Serial.println("dBm");
|
Serial.print(" dBm");
|
||||||
Serial.print("Encryption Type: ");
|
Serial.print("\tEncryption: ");
|
||||||
Serial.println(WiFi.encryptionType(thisNet));
|
Serial.println(WiFi.encryptionType(thisNet));
|
||||||
Serial.println();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user