Is there way to set ntpclient date/time, on startup (not via NTP Server) ?
One way is to connect an RTC (Real-Time Clock) module and retrieve the time from it.
Sure, but direct to ntpClient, something like "setTime" to load a current date-time when
connection is not available ?
Sorry that makes no sense. Post #2 gave you the only answer possible other than some brute force stuff.
Google for: esp8266 rtc synchronization
In principle, if an Internet time source is not available say at start up, the system time of the esp8266 can be set from an RTC, if available, and is then maintained from its internal crystal. All the normal Arduino time functions can be used to get the current time etc., irrespective of the original time source.
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.