diff --git a/README.md b/README.md index 9166f24..7dcad4b 100644 --- a/README.md +++ b/README.md @@ -13,10 +13,10 @@ Connect to a NTP server, here is how: const char *ssid = ""; const char *password = ""; -WiFiUDP ntpUDP(ntpUDP); +WiFiUDP ntpUDP; // By default 'time.nist.gov' is used. -NTPClient timeClient; +NTPClient timeClient(ntpUDP); // You can specify the time server pool and the offset, (in seconds) // additionaly you can specify the update interval (in milliseconds).