We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a1fa79a commit 910111aCopy full SHA for 910111a
WiFi/examples/ScanNetworks/ScanNetworks.ino
@@ -61,7 +61,12 @@ void printMacAddress() {
61
void listNetworks() {
62
// scan for nearby networks:
63
Serial.println("** Scan Networks **");
64
- byte numSsid = WiFi.scanNetworks();
+ int numSsid = WiFi.scanNetworks();
65
+ if (numSsid == -1)
66
+ {
67
+ Serial.println("Couldn't get a wifi connection");
68
+ while(true);
69
+ }
70
71
// print the list of networks seen:
72
Serial.print("number of available networks:");
0 commit comments