EEPROM and error handler and RTC save time issue
Posted: Sat Sep 23, 2023 9:08 am
Hello everyone
i am a bit new to ESP32, and i need your help about an issue i am facing
i am using <ESP32Time.h> library to use 24h clock to make schedual timer
the real current time will be set manually by user interface through LCD.
the project won't be connected to wifi internet connection for now.
i need a way to call a function that i call saveTime2EEPROM only if somethiung wrong happened like pwoer lose for a second or reset button is pressed or if WDT reset occured or any other reason that will make the current minutes and hours variable data to be lost
i could use that approach on ATMEGA32 for example, but i can't find a way for ESP32
i though about making a call to that function everytime the minutes value changes but that will kill the flash so quick
any ideas?
thank you
i am a bit new to ESP32, and i need your help about an issue i am facing
i am using <ESP32Time.h> library to use 24h clock to make schedual timer
the real current time will be set manually by user interface through LCD.
the project won't be connected to wifi internet connection for now.
i need a way to call a function that i call saveTime2EEPROM only if somethiung wrong happened like pwoer lose for a second or reset button is pressed or if WDT reset occured or any other reason that will make the current minutes and hours variable data to be lost
i could use that approach on ATMEGA32 for example, but i can't find a way for ESP32
i though about making a call to that function everytime the minutes value changes but that will kill the flash so quick
any ideas?
thank you