mirror of
https://github.com/airgradienthq/arduino.git
synced 2025-07-30 00:47:17 +02:00
Better logging
Fix notif when wifi not connect
This commit is contained in:
@ -908,6 +908,11 @@ static void configurationUpdateSchedule(void) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (wifiConnector.isConnected() == false) {
|
||||||
|
Serial.println(" WiFi not connected, skipping fetch configuration from AG server");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (apiClient.fetchServerConfiguration()) {
|
if (apiClient.fetchServerConfiguration()) {
|
||||||
configUpdateHandle();
|
configUpdateHandle();
|
||||||
}
|
}
|
||||||
@ -1008,6 +1013,7 @@ static void updateDisplayAndLedBar(void) {
|
|||||||
if (wifiConnector.isConnected() == false) {
|
if (wifiConnector.isConnected() == false) {
|
||||||
stateMachine.displayHandle(AgStateMachineWiFiLost);
|
stateMachine.displayHandle(AgStateMachineWiFiLost);
|
||||||
stateMachine.handleLeds(AgStateMachineWiFiLost);
|
stateMachine.handleLeds(AgStateMachineWiFiLost);
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (configuration.isCloudConnectionDisabled()) {
|
if (configuration.isCloudConnectionDisabled()) {
|
||||||
|
Reference in New Issue
Block a user