Just to say I added Util.writeStorage() and Util.readStorage() yesterday (I found myself doing it for another app and thought I might as well add it globally).
While require("Storage").read(${JSON.stringify("myapp.json")}) works perfectly for settings, in my case I had something in Storage that was binary, so the implementation I've used in the app loader transfers as base64 to avoid any corruption
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Perfect - thanks!
Just to say I added
Util.writeStorage()
andUtil.readStorage()
yesterday (I found myself doing it for another app and thought I might as well add it globally).While
require("Storage").read(${JSON.stringify("myapp.json")})
works perfectly for settings, in my case I had something in Storage that was binary, so the implementation I've used in the app loader transfers as base64 to avoid any corruption