• 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"
     }
    
About

Avatar for Wilberforce @Wilberforce started