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

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
aESP8266user
Normal user
Posts: 2
Joined: 17 Dec 2020, 07:18

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

#1 Post by aESP8266user » 17 Dec 2020, 07:40

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

User avatar
Ath
Normal user
Posts: 561
Joined: 10 Jun 2018, 12:06
Location: NL

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

#2 Post by Ath » 17 Dec 2020, 07:46

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.
/Ton

aESP8266user
Normal user
Posts: 2
Joined: 17 Dec 2020, 07:18

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

#3 Post by aESP8266user » 17 Dec 2020, 08:23

Hi,I am using a ESP01-S module,it has a 1MB Flash memory.

User avatar
Ath
Normal user
Posts: 561
Joined: 10 Jun 2018, 12:06
Location: NL

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

#4 Post by Ath » 17 Dec 2020, 08:39

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).
/Ton

TD-er
Core team member
Posts: 4254
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

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

#5 Post by TD-er » 17 Dec 2020, 15:01

The reason why it hasn't been implemented is because flash has a rather limited number of write cycles.

Post Reply

Who is online

Users browsing this forum: No registered users and 30 guests