Complex types can be stored, they are automatically converted to JSON strings and back again:
var fs = new(require("FlashStoreWrite"))(0x7c000); var config={start:4, end:9, data:'fishing'}; fs.item('config',config);
var rfs=new(require("FlashStore"))(0x7c000); var my_config=rfs.item('config').valueOf(); console.log(my_config);
Flash map 4MB:512/512, manuf 0xe0 chip 0x4016 >echo(0); { "start": 4, "end": 9, "data": "fishing" }
@Wilberforce started
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.
Complex types can be stored, they are automatically converted to JSON strings and back again: