1
0
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:
Tom Igoe 2012-03-12 14:35:02 -04:00
parent d09655d478
commit 71ee20314f

View File

@ -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();
} }
} }