Most recent activity
-
- 10 comments
- 1,391 views
-
-
-
it was just an example. Before it was giving similar errors but from a different sections of the code
Usually it was coming up with errors around to where the comments are in the code.
When this happens, it will actually be in the half working state - all functions and variables are not defined, but it was still sending BLE advertising using the last known values
I have shared it on Gist here: -
@Gordon - thank you, I got that part sorted =)
Now, I have another annoyance - after some time of working ok, I get some random errors like this:> Uncaught ReferenceError: "pin" is not defined at line 1 col 1 pin changes ^ in function called from system Connected to PM Uncaught ReferenceError: "pin" is not defined at line 1 col 1 pin changes ^ in function called from system Uncaught ReferenceError: "unction" is not defined at line 1 col 1 unction() { // every 10 seconds ^ in function called from system Uncaught ReferenceError: "pin" is not defined at line 1 col 1 pin changes ^ in function called from system
Its like its of memory or something. I just dont know what to check as after restart it starts working again... for some time
-
OK, worked out the storage part =)
Now, I was going to set the timer function to update Date.now() to the storage, so that I can reference it after reboot and set the time to the previous value, but for some reason get an error:>Date.setTime(1642303291816.30810546875) Uncaught Error: Function "setTime" not found! at line 1 col 6 Date.setTime(1642303291816.30810546875)
-
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?
Hi everyone
I am trying to set the time on Puck.js from another device (ESP32).
I am not able to run from the battery as my electricity meter sometimes gets stuck on pulse LED high and after some time hangs Puck.js and drains the battery. So I am running it off mains power (3.3v), but due to that and it sometimes rebooting, I cannot keep the time in sync with real.
My other ESP32 device is withing BT reach to Puck.js and I just wondered if I can make it connect to Puck.js and somehow set the time on it
Any help with time sync would be much appreciated =)