I created a dummy device , I was able to succesfully assign data to it, and i consumed the assigned data successfully too. The problem is that when i restart the espeasy device, the assigned data seems to get reset. Is there a way to make it persist in memory?
thanks
How do i make the TaskValueSet of a dummy device persist after reboot
Moderators: grovkillen, Stuntteam, TD-er
- grovkillen
- Core team member
- Posts: 3621
- Joined: 19 Jan 2017, 12:56
- Location: Hudiksvall, Sweden
- Contact:
Re: How do i make the TaskValueSet of a dummy device persist after reboot
If you use MQTT you can have the broker resend it if you have "retained" option active.
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
Re: How do i make the TaskValueSet of a dummy device persist after reboot
Thanks for your input, but I only use http and rules.
- grovkillen
- Core team member
- Posts: 3621
- Joined: 19 Jan 2017, 12:56
- Location: Hudiksvall, Sweden
- Contact:
Re: How do i make the TaskValueSet of a dummy device persist after reboot
Then you need to rely on whatever controller you're using. In the future we are thinking about implementing a secondary EEPROM for storing such info/values.
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
-
- New user
- Posts: 1
- Joined: 12 May 2019, 13:35
Re: How do i make the TaskValueSet of a dummy device persist after reboot
I see uservalues are stored in RTC memory. Is possible store TaskValueSet there too?
Re: How do i make the TaskValueSet of a dummy device persist after reboot
Yes. I checked my Sonoff Basic running ESP_Easy_mega-20190409_normal_ESP8285_1M.bin; I used TaskValueSet to change the value of a Generic - Dummy Device and the value persisted after a warm reboot.I see uservalues are stored in RTC memory. Is possible store TaskValueSet there too?
- Thomas
- schnurzel59
- Normal user
- Posts: 32
- Joined: 18 Feb 2019, 12:41
- Location: Germany
- Contact:
Re: How do i make the TaskValueSet of a dummy device persist after reboot
Hi,
I solved it that way for me. Repeated watchdog reboots permanently delete all shutter positions.
I use a Raspbery (I use Raspberymatic for other tasks. the ESP controls "only" the shutters.) and send my data to the controller. After a reboot of the ESP, the Pi receives
a message and sends all data with Http Get commands to the ESP. The same can be done with a second ESP.
Send all data with "sendTo" from ESP1 to ESP2. (and from ESP2 to ESP1 for data synchronization).
Then restore data automatically after reboot. Set up a few DummyDevices and a few rules and everything is safe. (almost everything).
I solved it that way for me. Repeated watchdog reboots permanently delete all shutter positions.
I use a Raspbery (I use Raspberymatic for other tasks. the ESP controls "only" the shutters.) and send my data to the controller. After a reboot of the ESP, the Pi receives
a message and sends all data with Http Get commands to the ESP. The same can be done with a second ESP.
Send all data with "sendTo" from ESP1 to ESP2. (and from ESP2 to ESP1 for data synchronization).
Then restore data automatically after reboot. Set up a few DummyDevices and a few rules and everything is safe. (almost everything).
Greetings Martin
Oh God, my English is horrible.
Oh God, my English is horrible.
Who is online
Users browsing this forum: No registered users and 70 guests