mirror of
https://github.com/anklimov/lighthub
synced 2025-12-06 11:49:51 +03:00
ESP8266 fix (autoretrieve conf if 404)
flash (aJson update required)
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -3,6 +3,7 @@
|
|||||||
.clang_complete
|
.clang_complete
|
||||||
.gcc-flags.json
|
.gcc-flags.json
|
||||||
CMakeListsPrivate.txt
|
CMakeListsPrivate.txt
|
||||||
|
custom-build-flags/*
|
||||||
build_flags_due.sh
|
build_flags_due.sh
|
||||||
build_flags_esp32.sh
|
build_flags_esp32.sh
|
||||||
build_flags_esp8266.sh
|
build_flags_esp8266.sh
|
||||||
@@ -10,3 +11,4 @@ build_flags_stm32.sh
|
|||||||
build_flags_due-5500.sh
|
build_flags_due-5500.sh
|
||||||
build_flags_mega2560.sh
|
build_flags_mega2560.sh
|
||||||
build_flags_controllino.sh
|
build_flags_controllino.sh
|
||||||
|
build_flags_nrf52840.sh
|
||||||
|
|||||||
@@ -237,7 +237,7 @@ else
|
|||||||
|
|
||||||
|
|
||||||
void printMACAddress() {
|
void printMACAddress() {
|
||||||
debugSerial<<F("Configured MAC:");
|
debugSerial<<F("MAC:");
|
||||||
for (byte i = 0; i < 6; i++)
|
for (byte i = 0; i < 6; i++)
|
||||||
#ifdef WITH_PRINTEX_LIB
|
#ifdef WITH_PRINTEX_LIB
|
||||||
(i < 5) ?debugSerial<<hex <<(mac[i])<<F(":"):debugSerial<<hex<<(mac[i])<<endl;
|
(i < 5) ?debugSerial<<hex <<(mac[i])<<F(":"):debugSerial<<hex<<(mac[i])<<endl;
|
||||||
@@ -1230,6 +1230,9 @@ lan_status loadConfigFromHttp(int arg_cnt, char **args)
|
|||||||
applyConfig();
|
applyConfig();
|
||||||
debugSerial<<F("Done.\n");
|
debugSerial<<F("Done.\n");
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
debugSerial<<F("Config retrieving failed\n");
|
||||||
|
return READ_RE_CONFIG;//-11; //Load from NVRAM
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
debugSerial.printf("[HTTP] GET... failed, error: %s\n", httpClient.errorToString(httpResponseCode).c_str());
|
debugSerial.printf("[HTTP] GET... failed, error: %s\n", httpClient.errorToString(httpResponseCode).c_str());
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define TXEnablePin 13
|
#define TXEnablePin 13
|
||||||
#define ESP_EEPROM_SIZE 4096
|
#define ESP_EEPROM_SIZE 2048
|
||||||
|
|
||||||
#ifndef AVR_DMXOUT_PIN
|
#ifndef AVR_DMXOUT_PIN
|
||||||
#define AVR_DMXOUT_PIN 3
|
#define AVR_DMXOUT_PIN 3
|
||||||
|
|||||||
Reference in New Issue
Block a user