Fixed Readme
Initialization with a different timeserver had a missing ntpUDP Added the default values for interval and offset to the comment of the default constructor in the ReadMe
This commit is contained in:
parent
ac19e0d7db
commit
85c4caca94
@ -17,12 +17,13 @@ const char *password = "<PASSWORD>";
|
|||||||
|
|
||||||
WiFiUDP ntpUDP;
|
WiFiUDP ntpUDP;
|
||||||
|
|
||||||
// By default 'time.nist.gov' is used.
|
// By default 'time.nist.gov' is used with 60 seconds update interval and
|
||||||
|
// no offset
|
||||||
NTPClient timeClient(ntpUDP);
|
NTPClient timeClient(ntpUDP);
|
||||||
|
|
||||||
// You can specify the time server pool and the offset, (in seconds)
|
// You can specify the time server pool and the offset, (in seconds)
|
||||||
// additionaly you can specify the update interval (in milliseconds).
|
// additionaly you can specify the update interval (in milliseconds).
|
||||||
// NTPClient timeClient("europe.pool.ntp.org", 3600, 60000);
|
// NTPClient timeClient(ntpUDP, "europe.pool.ntp.org", 3600, 60000);
|
||||||
|
|
||||||
void setup(){
|
void setup(){
|
||||||
Serial.begin(11520);
|
Serial.begin(11520);
|
||||||
|
Loading…
Reference in New Issue
Block a user