Hi everyone.
I have a strange issue that I am trying to solve.
My puck.js gets pulses from my power meter, increments a variable value for day and hour totals and sends it via BLE. Now, I have noticed that on the receiving end the graph falls to zero and starts incrementing again, which tells me that my puck got restarted.
Is there a way to save the current values into non volatile memory, so that if it restarts, it will continue from the value it had?
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 everyone.
I have a strange issue that I am trying to solve.
My puck.js gets pulses from my power meter, increments a variable value for day and hour totals and sends it via BLE. Now, I have noticed that on the receiving end the graph falls to zero and starts incrementing again, which tells me that my puck got restarted.
Is there a way to save the current values into non volatile memory, so that if it restarts, it will continue from the value it had?
1 Attachment