File tree Expand file tree Collapse file tree 1 file changed +14
-15
lines changed Expand file tree Collapse file tree 1 file changed +14
-15
lines changed Original file line number Diff line number Diff line change @@ -441,6 +441,20 @@ static bool wifiStationRunning;
441
441
static int wifiFailedConnectionAttempts = 0 ; // Count the number of connection attempts between restarts
442
442
static WiFiMulti *wifiMulti;
443
443
444
+ // *********************************************************************
445
+ // Counts the number of entered SSIDs
446
+ int wifiNetworkCount ()
447
+ {
448
+ // Count SSIDs
449
+ int networkCount = 0 ;
450
+ for (int x = 0 ; x < MAX_WIFI_NETWORKS; x++)
451
+ {
452
+ if (strlen (settings.wifiNetworks [x].ssid ) > 0 )
453
+ networkCount++;
454
+ }
455
+ return networkCount;
456
+ }
457
+
444
458
// *********************************************************************
445
459
// Callback for all WiFi RX Packets
446
460
// Get RSSI of all incoming management packets: https://esp32.com/viewtopic.php?t=13889
@@ -3007,21 +3021,6 @@ bool wifiIsRunning()
3007
3021
return false ;
3008
3022
}
3009
3023
3010
- // ----------------------------------------
3011
- // Counts the number of entered SSIDs
3012
- // ----------------------------------------
3013
- int wifiNetworkCount ()
3014
- {
3015
- // Count SSIDs
3016
- int networkCount = 0 ;
3017
- for (int x = 0 ; x < MAX_WIFI_NETWORKS; x++)
3018
- {
3019
- if (strlen (settings.wifiNetworks [x].ssid ) > 0 )
3020
- networkCount++;
3021
- }
3022
- return networkCount;
3023
- }
3024
-
3025
3024
// ----------------------------------------
3026
3025
// Given a status, return the associated state or error
3027
3026
// ----------------------------------------
You can’t perform that action at this time.
0 commit comments