Skip to content

Persisting accessory/char state after reboot #7

Answered by HomeSpan
aaaidan asked this question in Q&A
Discussion options

You must be logged in to vote

Merry Xmas as well! I recommend you use the NVS structure to store persistent state variables. The native esp32 functions are fairly straightforward and very flexible so I did not create any special HomeSpan handlers. By using the NVS protocol (instead of the emulated Arduino EEPROM functions) you can create your own name space in the NVS partition without worrying about colliding with any of the HomeSpan spaces. I'll probably add a list of the HomeSpan space names to the documentation so users know which names NOT to use.

I will shortly be publishing the code for two real-world devices I created with HomeSpan to control a few appliances in my home. Both use an RF transmitter (which was t…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by HomeSpan
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants