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 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.
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.