Better logging

Fix notif when wifi not connect
This commit is contained in:
samuelbles07
2025-02-07 10:45:14 +07:00
parent d4b4f51c3c
commit 4c7e72b8e7

View File

@ -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()) {