@@ -756,15 +756,15 @@ bool wifiStationEnabled(const char ** reason)
756
756
// Verify that at least one SSID value is set
757
757
if (wifiStationSsidSet == false )
758
758
{
759
- *reason = " SSID not available" ;
759
+ *reason = " , SSID not available" ;
760
760
break ;
761
761
}
762
762
763
763
// Determine if Wifi is begin restarted
764
764
if (wifiStationRestart)
765
765
{
766
766
wifiStationRestart = false ;
767
- *reason = " restart requested" ;
767
+ *reason = " , restart requested" ;
768
768
break ;
769
769
}
770
770
@@ -778,19 +778,19 @@ bool wifiStationEnabled(const char ** reason)
778
778
// Build the reason
779
779
if (reasonBuffer)
780
780
{
781
- sprintf (reasonBuffer," is lower priority than %s" , networkGetCurrentInterfaceName ());
781
+ sprintf (reasonBuffer," , is lower priority than %s" , networkGetCurrentInterfaceName ());
782
782
*reason = reasonBuffer;
783
783
}
784
784
785
785
// Allocation failed
786
786
else
787
- *reason = " is lower priority" ;
787
+ *reason = " , is lower priority" ;
788
788
break ;
789
789
}
790
790
791
791
// WiFi should start and continue running
792
792
enabled = true ;
793
- *reason = " is enabled" ;
793
+ *reason = " , is enabled" ;
794
794
} while (0 );
795
795
return enabled;
796
796
}
@@ -1056,6 +1056,14 @@ void wifiStationUpdate()
1056
1056
case WIFI_STATION_STATE_STABLE:
1057
1057
break ;
1058
1058
}
1059
+
1060
+ // Periodically display the WiFi state
1061
+ if (PERIODIC_DISPLAY (PD_WIFI_STATE))
1062
+ {
1063
+ systemPrintf (" WiFi station state: %s%s\r\n " ,
1064
+ wifiStationStateName[wifiStationState], reason);
1065
+ PERIODIC_CLEAR (PD_WIFI_STATE);
1066
+ }
1059
1067
}
1060
1068
1061
1069
// *********************************************************************
0 commit comments