I want to store a counter that is always changing, but I want it to remain and be able to retrieve it on after a power loss.
It's only one long number data, but as it is always changing, I don't know where to store it to not over wear the memory space.
I'm aware that writing to much on ESP's EEPROM or SPIFFS would damage it. I've seen that post, but it doesn't help in my case.
The data to be saved is the volume of water pumped with a water pump during it's entire life.
Of course I could save it only once a while to reduce the number of writes, but I would lose some acccuracy.