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:
parent
d09655d478
commit
71ee20314f
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user