Avatar for user84770

user84770

Member since Jan 2018 • Last active Jun 2018
  • 1 conversations
  • 2 comments

Most recent activity

    • 4 comments
    • 1,833 views
  • in ESP8266
    Avatar for user84770

    Hi MaBe, thank you for your advise!
    above two links were tested on ESP12-F + "v1.95 4Mb" scatch. Unfortunately:

    Flash.getFree()
    Uncaught ReferenceError: "Flash" is not defined
    

    and

    var f = new (require("FlashEEPROM"))();
    Uncaught Error: Module "FlashEEPROM" not found
    

    In final I got "sunny night" and found one solution that was tested and passed:
    step 1) write in the left side of Web IDE two lines:

    function getName(){return "NR.3";}
    save();
    

    simple call getName() returns NR.3 even after power reset. Perfect begin!

    step 2) function was changed like below:

    function getName(){return "NR.12";}
    save();
    

    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

  • in ESP8266
    Avatar for 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!

Actions