Page 1 of 1

ESP8266 module can't maintain the lasts state when power up

Posted: 17 Dec 2020, 07:40
by aESP8266user
Hi,

I am using a ESP01-S module with a relay by the ESP Easy firmware,but when I power down and then power up the ESP module,it can't maintain the lasts state,I think the ESP module should save the lasts stale to eeprom/flash and restore it when ESP power up. How should I do to repair it?

tx

Re: ESP8266 module can't maintain the lasts state when power up

Posted: 17 Dec 2020, 07:46
by Ath
ESP's don't use standard storage like that, the so-called NV-RAM is only keeping it's content while the power stays on. So after a power-cycle all is reset to initial status.

Re: ESP8266 module can't maintain the lasts state when power up

Posted: 17 Dec 2020, 08:23
by aESP8266user
Hi,I am using a ESP01-S module,it has a 1MB Flash memory.

Re: ESP8266 module can't maintain the lasts state when power up

Posted: 17 Dec 2020, 08:39
by Ath
ESPEasy is keeping the values from devices (Task data) in that NV-RAM during a warm boot, but not over a power-cycle. That would be a nice to have feature indeed, storing the data in a file on flash, but AFAICS that's not implemented (yet).

Re: ESP8266 module can't maintain the lasts state when power up

Posted: 17 Dec 2020, 15:01
by TD-er
The reason why it hasn't been implemented is because flash has a rather limited number of write cycles.