Update README.md

Correct example
This commit is contained in:
Sandeep Mistry 2016-04-12 09:35:34 -04:00
parent b910b126ba
commit 3c1d6b1c18

View File

@ -13,10 +13,10 @@ Connect to a NTP server, here is how:
const char *ssid = "<SSID>"; const char *ssid = "<SSID>";
const char *password = "<PASSWORD>"; const char *password = "<PASSWORD>";
WiFiUDP ntpUDP(ntpUDP); WiFiUDP ntpUDP;
// By default 'time.nist.gov' is used. // By default 'time.nist.gov' is used.
NTPClient timeClient; 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).