• Skip to main content
  • Skip to primary sidebar

RNTLab.com

The Ultimate Shortcut to Learn Electronics and Programming with Open Source Hardware and Software

  • Courses
  • Forum
    • Forum
    • Ask Question
  • Shop
  • Account
  • Blog
  • Login

use non volatile storage on esp with pascal

Q&A Forum › use non volatile storage on esp with pascal
0 Vote Up Vote Down
Johann Maurer asked 6 years ago
4 Answers
0 Vote Up Vote Down
Sara Santos Staff answered 6 years ago

Hi Johann.
I’m sorry, but I didn’t understand your question.
Can you reformulate?
Regards,
Sara 

0 Vote Up Vote Down
Johann Maurer answered 6 years ago

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

0 Vote Up Vote Down
Sara Santos Staff answered 6 years ago

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

0 Vote Up Vote Down
Johann Maurer answered 6 years ago

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

Primary Sidebar

Login to Ask or Answer Questions

This Forum is private and it’s only available for members enrolled in our Courses.

Login »

Latest Course Updates

  • [eBook Updated] Learn Raspberry Pi Pico/Pico W with MicroPython eBook – Version 1.2 May 26, 2025
  • [New Edition] Build ESP32-CAM Projects eBook – 2nd Edition April 16, 2025

You must be logged in to view this content.

Contact Support - Refunds - Privacy - Terms - MakerAdvisor.com - Member Login

Copyright © 2013-2025 · RandomNerdTutorials.com · All Rights Reserved

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.