BLYNK displaying problem: Readings resets to 0 when device gets disconnected. How do I make it continous?

Hi. Im currently making an ESP32-based energy meter and interfacing it using BLYNK. Now my problem is when my device reboots and/or gets disconnected to the internet, the kWh reading on BLYNK resets back to 0 when I connect the device back again. Is there a way that would make BLYNK store the last kWh readings and just add the new readings to it and make it continuous?? in my case i had a last reading of 2.3kWh before my device got disconnected and when i connected it again it resets back to 0. What i would like is when it connects again the kWh displayed on BLYNK should be [last stored readings + new readings]. How do i resolve this? Thank you so much.

You can use sync
https://docs.blynk.io/en/blynk.edgent-firmware-api/state-syncing

1 Like

Hi John93!! I just tried and it worked. Thank you so much!!

1 Like