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 d4b4f51 commit 4c7e72bCopy full SHA for 4c7e72b
examples/OneOpenAir/OneOpenAir.ino
@@ -908,6 +908,11 @@ static void configurationUpdateSchedule(void) {
908
return;
909
}
910
911
+ if (wifiConnector.isConnected() == false) {
912
+ Serial.println(" WiFi not connected, skipping fetch configuration from AG server");
913
+ return;
914
+ }
915
+
916
if (apiClient.fetchServerConfiguration()) {
917
configUpdateHandle();
918
@@ -1008,6 +1013,7 @@ static void updateDisplayAndLedBar(void) {
1008
1013
if (wifiConnector.isConnected() == false) {
1009
1014
stateMachine.displayHandle(AgStateMachineWiFiLost);
1010
1015
stateMachine.handleLeds(AgStateMachineWiFiLost);
1016
1011
1017
1012
1018
1019
if (configuration.isCloudConnectionDisabled()) {
0 commit comments