Skip to content

Commit 3c1d6b1

Browse files
committed
Update README.md
Correct example
1 parent b910b12 commit 3c1d6b1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ Connect to a NTP server, here is how:
1313
const char *ssid = "<SSID>";
1414
const char *password = "<PASSWORD>";
1515

16-
WiFiUDP ntpUDP(ntpUDP);
16+
WiFiUDP ntpUDP;
1717

1818
// By default 'time.nist.gov' is used.
19-
NTPClient timeClient;
19+
NTPClient timeClient(ntpUDP);
2020

2121
// You can specify the time server pool and the offset, (in seconds)
2222
// additionaly you can specify the update interval (in milliseconds).

0 commit comments

Comments
 (0)