ESP12-F saving variable #5955
Replies: 1 comment
-
Posted at 2018-01-04 by @MaBecker Hi user847700, take a look at the flash library and the module EEPROM on flash Posted at 2018-01-05 by user84770 Hi MaBe, thank you for your advise!
and
In final I got "sunny night" and found one solution that was tested and passed:
simple call getName() returns NR.3 even after power reset. Perfect begin! step 2) function was changed like below:
reboot by power and call getName() ruturns NR.12 now! Hope it will work for long time. Anyway, I will glad to get yours better ideas. Thank you, Mike Posted at 2018-01-05 by @MaBecker So it is working for you - Great. Yes - the API reference just describes the modules and their functions. In JS it is standard to require the module you like to use. Internal modules like 'Flash' can be used directly in console other need to be uploaded by WebIDE like 'EEPROM', here you find more about Modules |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2018-01-04 by user84770
Hi!
Please help - has somebody solved procedure to save and read variable values in ESP12-F or similar module? I cannot find helpful JS-sample for Espruino Web IDE.
My ESP12-F receives some data over WiFi and should save updated value of one variable. After power reset my ESP12-F should use updated value of that variable from the last session.
Thank you for any idea!
Beta Was this translation helpful? Give feedback.
All reactions