mirror of
https://github.com/anklimov/lighthub
synced 2025-12-09 05:09:49 +03:00
ccs811 & hdc1080 integration done
mqtt publish to abstrchin added http connection error threating for ESPx, DUE, STM fixed ESP8266 pin conflict between sensor WAK and DMX OUT fixed DHT begin added
This commit is contained in:
@@ -1180,10 +1180,11 @@ lan_status loadConfigFromHttp(int arg_cnt, char **args)
|
||||
wdt_res();
|
||||
//debugSerial<<"making GET request");get
|
||||
htclient.beginRequest();
|
||||
htclient.get(URI);
|
||||
responseStatusCode = htclient.get(URI);
|
||||
htclient.endRequest();
|
||||
|
||||
|
||||
if (responseStatusCode == HTTP_SUCCESS)
|
||||
{
|
||||
// read the status code and body of the response
|
||||
responseStatusCode = htclient.responseStatusCode();
|
||||
response = htclient.responseBody();
|
||||
@@ -1205,8 +1206,12 @@ lan_status loadConfigFromHttp(int arg_cnt, char **args)
|
||||
applyConfig();
|
||||
debugSerial<<F("Done.\n");
|
||||
}
|
||||
} else {
|
||||
debugSerial<<F("Config retrieving failed\n");
|
||||
return READ_RE_CONFIG;//-11; //Load from NVRAM
|
||||
}
|
||||
} else {
|
||||
debugSerial<<F("Config retrieving failed\n");
|
||||
debugSerial<<F("Connect failed\n");
|
||||
return READ_RE_CONFIG;//-11; //Load from NVRAM
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user