Hello!
I use EspEasy mega-20180130, i would save the gpio state, ex. every minute, in an .txt file, when esp boot (if occur a power outage or reboot) must read this .txt file and set the GPIO variable according to the last save.
How i can do that?
thanks
Save GPIO state on flash/eeprom
Moderators: grovkillen, Stuntteam, TD-er
- grovkillen
- Core team member
- Posts: 3621
- Joined: 19 Jan 2017, 12:56
- Location: Hudiksvall, Sweden
- Contact:
Re: Save GPIO state on flash/eeprom
Currently no but it's planned to have external EEPROM support.
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you
- grovkillen
- Core team member
- Posts: 3621
- Joined: 19 Jan 2017, 12:56
- Location: Hudiksvall, Sweden
- Contact:
Re: Save GPIO state on flash/eeprom
What is the intended use case?
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you
-
- Normal user
- Posts: 307
- Joined: 06 Nov 2016, 13:45
Re: Save GPIO state on flash/eeprom
For me .... to let relay's controlling pumps survive their activity despite all watchdog rebootsWhat is the intended use case?
I store GPIO states controlling a relay, in a dummy task.
With a Rule:
"On System#Boot do"
I restore the last known GPIO state
This works for a hot-boot, NOT a power outage.
30+ ESP units for production and test. Ranging from control of heating equipment, flow sensing, floor temp sensing, energy calculation, floor thermostat, water usage, to an interactive "fun box" for my grandson. Mainly Wemos D1.
Re: Save GPIO state on flash/eeprom
For now i've solved with an UPS to avoid any power outage...grovkillen wrote: ↑16 Sep 2019, 06:01 Currently no but it's planned to have external EEPROM support.
hope that this features (persistant relay mode in case of power outage) will be arrive soon as possible.
Thanks
Who is online
Users browsing this forum: No registered users and 29 guests