Dear friends, I hope you can help me with your comments and points of view.
I briefly explain my project: I currently have installed the local blynk Server on a raspberry Pi 3 card; and a device that constantly sends data to the Blynk Server, the device consists of 1 arduino nano and a nodeMCU WiFi.
I have a little less than 1 year knowing everything about Blynk, currently the blynk server receives the data from the device and shows me in real time in the application, but when I turn off the server (raspberry Pi) all the data is lost. What I would like is some way to save the data up to a certain limit and then overwrite the information.
My project consists of an electronic single-phase electric meter, the device senses the voltage and current of a residence and these data are sent to the Raspberry Pi server and I can see in the application through my cell phone the amount billed according to consumption and a historical picture of consumption per month, but when I turn off the server (raspberry Pi) the amount billed resets to 0 and when historical also ie no data.
As I do not handle very well the commands and configuration in the blynk I would like to know if after turning off the server and turn it on again the data is not erased.
They are not switched off at the same time as they are independent devices.
When I turn off only the NodeMCU the billing values are reset to zero (but I understand that it is a problem of my programming in the arduino) and the consumption history table is maintained which is what matters most to me now and when I turn off only the Pi the billing values and history table are reset.
I want that the values of the history table are always maintained.
And could you explain me about the raw data storage.
If you are looking to store only a few values search littleFS. I write most of my variables to littleFS every time they change so if the mcu reboots at anytime they are ready to be loaded from memory.