forked from airgradienthq/arduino
Better logging
Fix notif when wifi not connect
This commit is contained in:
1 parent
d4b4f51c3c
commit
4c7e72b8e7
1 file changed
+6
@@ -908,6 +908,11 @@ static void configurationUpdateSchedule(void) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (wifiConnector.isConnected() == false) {
|
||||
Serial.println(" WiFi not connected, skipping fetch configuration from AG server");
|
||||
return;
|
||||
}
|
||||
|
||||
if (apiClient.fetchServerConfiguration()) {
|
||||
configUpdateHandle();
|
||||
}
|
||||
@@ -1008,6 +1013,7 @@ static void updateDisplayAndLedBar(void) {
|
||||
if (wifiConnector.isConnected() == false) {
|
||||
stateMachine.displayHandle(AgStateMachineWiFiLost);
|
||||
stateMachine.handleLeds(AgStateMachineWiFiLost);
|
||||
return;
|
||||
}
|
||||
|
||||
if (configuration.isCloudConnectionDisabled()) {
|
||||
|
||||
Reference in new issue
Block a user