Open jgarcia-atg opened 1 year ago
There was a fix, that fixed EEPROM was not closed after startup: https://github.com/prampec/IotWebConf/commit/b89ac9f61b2022cc0c794a74751c5019b4679eef Maybe that introduced new problem. E.g. it might happened, that EEPROM.end() was called, that disabled any further eeprom writes?
Hi @prampec .
Thanks for your reply. Do you mean that maybe I have to modify .cpp file?
Do you properly use EEPROM.begin() and EEPROM.end() ?
First, I obtain the real size of the EEPROM memory with
uint32_t realSize = ESP.getFlashChipRealSize()
And then I initialize the EEPROM with:
EEPROM.begin(realSize)
Also I tried calling EEPROM.end()
at the beginning of the void setup but I am not even able to commit any writting
Hello.
I am using IotWebConf library for configuring Wi-Fi and MQTT connection for a device based on ESP8266. Unfortunatelly, I have to write myself some parameters on EEPROM but when y commit the write, it fails. For example:
MemWiFi and so on are previously defined like:
The problem is that when I call EEPROM.commit() it returns false, so I read on serial terminal "ERROR! EEPROM commit failed" I saw another Issue (https://github.com/prampec/IotWebConf/issues/60) and I tried his solution, but I'm still unable to commit the changes.
Any thoughs about this?
Thank you.