How to undo save()?

Posted on
  • There's probably a trivial trick I'm not seeing, but I save()'d some stuff in flash and I'd like to erase it so Esprunio comes up "empty" at boot. How do I do that? (I know how to erase the relevant sector in flash on an esp8266, but I think there needs to be a Javascript way to do that.)

  • The doc for reset() seems to imply that function will clear out the program.

    Confirmed, just tested reset(); it "undoes" the save(). :)

  • ... And then save() after the reset().

  • Ah, thanks!

  • Post a reply
    • Bold
    • Italics
    • Link
    • Image
    • List
    • Quote
    • code
    • Preview
About

How to undo save()?

Posted by Avatar for tve @tve

Actions