ESP8266 fix (autoretrieve conf if 404)

flash (aJson update required)
This commit is contained in:
2019-03-24 03:01:18 +03:00
parent 8b56ea4378
commit db29ee566c
3 changed files with 8 additions and 3 deletions

2
.gitignore vendored
View File

@@ -3,6 +3,7 @@
.clang_complete
.gcc-flags.json
CMakeListsPrivate.txt
custom-build-flags/*
build_flags_due.sh
build_flags_esp32.sh
build_flags_esp8266.sh
@@ -10,3 +11,4 @@ build_flags_stm32.sh
build_flags_due-5500.sh
build_flags_mega2560.sh
build_flags_controllino.sh
build_flags_nrf52840.sh

View File

@@ -237,7 +237,7 @@ else
void printMACAddress() {
debugSerial<<F("Configured MAC:");
debugSerial<<F("MAC:");
for (byte i = 0; i < 6; i++)
#ifdef WITH_PRINTEX_LIB
(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();
debugSerial<<F("Done.\n");
}
} else {
debugSerial<<F("Config retrieving failed\n");
return READ_RE_CONFIG;//-11; //Load from NVRAM
}
} else {
debugSerial.printf("[HTTP] GET... failed, error: %s\n", httpClient.errorToString(httpResponseCode).c_str());

View File

@@ -4,7 +4,7 @@
#endif
#define TXEnablePin 13
#define ESP_EEPROM_SIZE 4096
#define ESP_EEPROM_SIZE 2048
#ifndef AVR_DMXOUT_PIN
#define AVR_DMXOUT_PIN 3