Hi Johann.
I’m sorry, but I didn’t understand your question.
Can you reformulate?
Regards,
Sara
Hi Sara,
Thanks for your response. I had not finished my question and could not complete it! Sorry. I would save 2 integers into a save location (flash storage) on my esp32 using python.
In this moment reading our new Book about micropython an will eventually find the answer there. Thanks. I will ask again later, when a didn’t find the answer in your boo. Best regards Johann
Hi Johann.
We don’t cover that subject in the MicroPython eBook.
For what I’ve read in some forums, the best way to do that is creating a file and save your data there. The values saved will survive reboot and poweroff.
See this: https://forum.micropython.org/viewtopic.php?p=9325&sid=971bf45cdbc29e11721419784b9f2dba#p9325
(I haven’t tried it).
I hope this helps.
Regards,
Sara
Hi Sara,
Thanks for the link! There was no such info in the esp32 section of uPython. But I tested it with my esp32 and it worked.
I used it in my project, storing the variaibles in json format into a file. Reading back – fine!
I don’t now how many times I can rewrite the file in the flash. But my application will write about 3-4 times a day.
Thanks and best regards
Johann