Page 1 of 1

[SNTP] does configTime() writes config to flash?

Posted: Sat Nov 16, 2024 5:37 pm
by atesin
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:

Code: Select all

  // ----> Here is the ONLY ONE LINE needed in your sketch
  configTime(MYTZ, "pool.ntp.org");
  // <----
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

Re: [SNTP] does configTime() writes config to flash?

Posted: Mon Nov 18, 2024 2:45 am
by ESP_Sprite
Looking here, I don't see that code directly touching any flash, so I think you should be safe.