mirror of
https://github.com/anklimov/lighthub
synced 2025-12-06 11:49:51 +03:00
printex
This commit is contained in:
@@ -453,12 +453,12 @@ void onInitialStateInitLAN() {
|
||||
|
||||
#if defined(ARDUINO_ARCH_ESP32) || defined(ESP8266)
|
||||
if (WiFi.status() == WL_CONNECTED) {
|
||||
debugSerial<<F("WiFi connected. IP address: "));
|
||||
debugSerial<<WiFi.localIP());
|
||||
debugSerial<<F("WiFi connected. IP address: ");
|
||||
debugSerial<<WiFi.localIP();
|
||||
lanStatus = HAVE_IP_ADDRESS;//1;
|
||||
} else
|
||||
{
|
||||
debugSerial<<F("Problem with WiFi connected"));
|
||||
debugSerial<<F("Problem with WiFi connected");
|
||||
nextLanCheckTime = millis() + DHCP_RETRY_INTERVAL/5;
|
||||
}
|
||||
#endif
|
||||
@@ -535,7 +535,7 @@ void printCurentLanConfig();
|
||||
|
||||
#if defined(ESP8266) || defined(ARDUINO_ARCH_ESP32)
|
||||
void softRebootFunc(){
|
||||
debugSerial<<F("ESP.restart();"));
|
||||
debugSerial<<F("ESP.restart();");
|
||||
ESP.restart();
|
||||
}
|
||||
#endif
|
||||
@@ -1031,14 +1031,14 @@ lan_status loadConfigFromHttp(int arg_cnt, char **args)
|
||||
debugSerial.printf("[HTTP] GET... code: %d\n", httpResponseCode);
|
||||
if (httpResponseCode == HTTP_CODE_OK) {
|
||||
String response = httpClient.getString();
|
||||
debugSerial<<response);
|
||||
debugSerial<<response;
|
||||
aJson.deleteItem(root);
|
||||
root = aJson.parse((char *) response.c_str());
|
||||
if (!root) {
|
||||
debugSerial<<F("Config parsing failed"));
|
||||
debugSerial<<F("Config parsing failed");
|
||||
return READ_RE_CONFIG;
|
||||
} else {
|
||||
debugSerial<<F("Config OK, Applying"));
|
||||
debugSerial<<F("Config OK, Applying");
|
||||
applyConfig();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -13,10 +13,10 @@ env_default =
|
||||
; megaatmega2560
|
||||
; megaatmega2560-net
|
||||
; due
|
||||
; esp8266
|
||||
esp8266
|
||||
; esp32
|
||||
; megaatmega2560-5500
|
||||
due-5500
|
||||
; due-5500
|
||||
; controllino
|
||||
; stm32
|
||||
|
||||
@@ -145,6 +145,7 @@ lib_deps =
|
||||
DHT sensor library
|
||||
WifiManager
|
||||
https://github.com/arcao/Syslog.git
|
||||
https://github.com/livello/PrintEx.git#is-select-redecl
|
||||
|
||||
[env:megaatmega2560-net]
|
||||
platform = atmelavr
|
||||
|
||||
Reference in New Issue
Block a user