mirror of
https://github.com/xoseperez/espurna.git
synced 2026-03-04 15:34:19 +01:00
Update NtpClientLib and use NTP_TIMEOUT (#452)
This commit is contained in:
@@ -834,6 +834,7 @@ PROGMEM const char* const custom_reset_string[] = {
|
||||
#endif
|
||||
|
||||
#define NTP_SERVER "pool.ntp.org" // Default NTP server
|
||||
#define NTP_TIMEOUT 2000 // Set NTP request timeout to 2 seconds (issue #452)
|
||||
#define NTP_TIME_OFFSET 1 // Default timezone offset (GMT+1)
|
||||
#define NTP_DAY_LIGHT true // Enable daylight time saving by default
|
||||
#define NTP_SYNC_INTERVAL 60 // NTP initial check every minute
|
||||
|
||||
@@ -36,6 +36,7 @@ void _ntpStart() {
|
||||
|
||||
NTP.begin(getSetting("ntpServer", NTP_SERVER));
|
||||
NTP.setInterval(NTP_SYNC_INTERVAL, NTP_UPDATE_INTERVAL);
|
||||
NTP.setNTPTimeout(NTP_TIMEOUT);
|
||||
_ntpConfigure();
|
||||
|
||||
}
|
||||
|
||||
@@ -27,7 +27,7 @@ lib_deps =
|
||||
https://github.com/madpilot/mDNSResolver#4cfcda1
|
||||
https://github.com/xoseperez/my92xx#3.0.1
|
||||
https://bitbucket.org/xoseperez/nofuss.git#0.2.5
|
||||
https://github.com/xoseperez/NtpClient.git#b35e249
|
||||
https://github.com/gmag11/NtpClient.git#10ece38
|
||||
OneWire
|
||||
PMS Library
|
||||
PZEM004T
|
||||
|
||||
Reference in New Issue
Block a user