Hi, yes, you're right that StorageFile vs Storage is different - for the reading, write should return any data is printed, but I think what you want is just Puck.eval which returns the actual value returned by the function call:
But yes, I'm afraid this kind of thing is something it's not really possible to test in the emulator at the moment. Not long to wait for the Bangle now though!
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.
Hi, yes, you're right that StorageFile vs Storage is different - for the reading,
write
should return any data is printed, but I think what you want is justPuck.eval
which returns the actual value returned by the function call:But yes, I'm afraid this kind of thing is something it's not really possible to test in the emulator at the moment. Not long to wait for the Bangle now though!