[SNTP] does configTime() writes config to flash?
Posted: Sat Nov 16, 2024 5:37 pm
hi... newcomer here
i am trying to develop an app that needs to keep time updated, i am trying to decypher NTP-TZ-DST example (whic is very complete/complicated, ntp feature is not even mentioned in online documentation!), after reading i noted the only important line is 254:
but i want to know if everytime i call configTime(tz, srv1, srv2, srv3), does it write that config in flash?... and if it does, what could be a safe way to run it periodically?... because i dont want to wear out my esp internal flash like happened to THIS GUY = https://github.com/esp8266/Arduino/issues/1054
i am trying to develop an app that needs to keep time updated, i am trying to decypher NTP-TZ-DST example (whic is very complete/complicated, ntp feature is not even mentioned in online documentation!), after reading i noted the only important line is 254:
Code: Select all
// ----> Here is the ONLY ONE LINE needed in your sketch
configTime(MYTZ, "pool.ntp.org");
// <----