AceTime  1.2
Date and time classes for Arduino that support timezones from the TZ Database, and a system clock that can synchronize from an NTP server or an RTC chip.
NtpClock.cpp
1 /*
2  * MIT License
3  * Copyright (c) 2018 Brian T. Park
4  */
5 
6 // We include <WString.h> here for the sole reason to avoid a compiler warning
7 // about '"FPSTR" redefined' on an ESP32. That's because the ESP32 had an
8 // incorrect definition of FPSTR() before v1.0.3 (see
9 // https://github.com/espressif/arduino-esp32/issues/1371). so compat.h
10 // clobbers it with the correct definition. If we don't include <WString.h>
11 // here, "compath.h" gets included first, then something else eventually brings
12 // in <WString.h> which tries to redefine it, generating the compiler warning.
13 // At some point, if everyone migrates to v1.0.3 and above, I can remove that
14 // FPSTR() def in "compath.h".
15 #include <WString.h>
16 #include "../common/compat.h"
17 #include "NtpClock.h"
18 
19 #if defined(ESP8266) || defined(ESP32)
20 
21 namespace ace_time {
22 namespace clock {
23 
24 const char NtpClock::kNtpServerName[] = "us.pool.ntp.org";
25 
26 }
27 }
28 
29 #endif
ace_time::clock::NtpClock::kNtpServerName
static const char kNtpServerName[]
Default NTP Server.
Definition: NtpClock.h:46