Ahh, that could be it. When you connect with WebBLE and the meter viewer it shouldn't reset anything, but yes, if you re-upload code with the Web IDE then it will.
You can connect with the Web IDE and it won't reset anything - just don't click the 'upload' button or type reset().
If the power runs out then the data will be lost as well. It'd definitely be possible to save the data to a file in flash memory (maybe each day at midnight) so it wasn't lost, but that wasn't implemented in the code for the tutorial.
© Espruino, powered by microcosm.
Report a problem