Saves an object for later retrieval.
If the saving operation cannot be performed successfully, an error is thrown. Objects saved with this function can be retrieved with #persist.load, by giving back the same name, even after a reboot.
name : the name of the persisted object to save.
obj : the object to persist.
persist.save ('xxx', 1357) -- Save it in the store as 'xxx'
[...] -- reboot
x = persist.load 'xxx' -- Retrieve it from the store
assert(x == 1357)
Retrieve from flash an object saved with #persist.save.
name : the name of the persisted object to load.
the object stored under that name, or nil if no such object exists.
No, it isn’t.
Please help to mark “Solution” if your question is answered.