1
0
mirror of https://github.com/arduino/Arduino.git synced 2024-12-01 12:24:14 +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
by dlf (Metodo2 srl)
modified 9 Mar 2012
modified 12 Mar 2012
by Tom Igoe
*/
@ -26,7 +26,6 @@ void setup() {
Serial.println("Initializing Wifi...");
printMacAddress();
// scan for existing networks:
Serial.println("Scanning available networks...");
listNetworks();
@ -72,13 +71,12 @@ void listNetworks() {
for (int thisNet = 0; thisNet<numSsid; thisNet++) {
Serial.print(thisNet);
Serial.print(") ");
Serial.println(WiFi.SSID(thisNet));
Serial.print("Signal Strength: ");
Serial.print(WiFi.SSID(thisNet));
Serial.print("\tSignal: ");
Serial.print(WiFi.RSSI(thisNet));
Serial.println("dBm");
Serial.print("Encryption Type: ");
Serial.print(" dBm");
Serial.print("\tEncryption: ");
Serial.println(WiFi.encryptionType(thisNet));
Serial.println();
}
}