forked from airgradienthq/arduino
fix: Local Configuration
This commit is contained in:
@@ -50,7 +50,7 @@ void LocalServer::_PUT_config(void) {
|
||||
statusCode = 200;
|
||||
response = "Success";
|
||||
} else {
|
||||
response = "Set for cloud configuration. Local configuration ignored";
|
||||
response = config.getFailedMesage();
|
||||
}
|
||||
server.send(statusCode, "text/plain", response);
|
||||
}
|
||||
|
||||
@@ -102,7 +102,6 @@ static void configurationUpdateSchedule(void);
|
||||
static void executeCo2Calibration(void);
|
||||
static void appLedHandler(void);
|
||||
static void appDispHandler(void);
|
||||
static void updateWiFiConnect(void);
|
||||
static void oledDisplayLedBarSchedule(void);
|
||||
static void updateTvoc(void);
|
||||
static void updatePm(void);
|
||||
@@ -186,6 +185,7 @@ void setup() {
|
||||
sendDataToAg();
|
||||
|
||||
apiClient.fetchServerConfiguration();
|
||||
configSchedule.update();
|
||||
if (apiClient.isFetchConfigureFailed()) {
|
||||
if (ag->isOne()) {
|
||||
stateMachine.displayHandle(
|
||||
|
||||
Reference in New Issue
Block a user