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

User avatar
atesin
Posts: 3
Joined: Sat Nov 16, 2024 4:58 pm

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

Postby atesin » 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:

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

ESP_Sprite
Posts: 9757
Joined: Thu Nov 26, 2015 4:08 am

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

Postby ESP_Sprite » Mon Nov 18, 2024 2:45 am

Looking here, I don't see that code directly touching any flash, so I think you should be safe.

Who is online

Users browsing this forum: No registered users and 15 guests