From 1b7fd244802880fe8554389c24e4c3439e0c25f1 Mon Sep 17 00:00:00 2001 From: Cristian Maglie Date: Mon, 10 Dec 2012 11:50:49 +0100 Subject: [PATCH] Fixed server address on UdpNtpClient example. Fixes #1156 --- .../Ethernet/examples/UdpNtpClient/UdpNtpClient.ino | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/libraries/Ethernet/examples/UdpNtpClient/UdpNtpClient.ino b/libraries/Ethernet/examples/UdpNtpClient/UdpNtpClient.ino index 93ffe3991..6b3b53d13 100644 --- a/libraries/Ethernet/examples/UdpNtpClient/UdpNtpClient.ino +++ b/libraries/Ethernet/examples/UdpNtpClient/UdpNtpClient.ino @@ -7,6 +7,13 @@ For more on NTP time servers and the messages needed to communicate with them, see http://en.wikipedia.org/wiki/Network_Time_Protocol + Warning: NTP Servers are subject to temporary failure or IP address change. + Plese check + + http://tf.nist.gov/tf-cgi/servers.cgi + + if the time server used in the example didn't work. + created 4 Sep 2010 by Michael Margolis modified 9 Apr 2012 @@ -27,7 +34,9 @@ byte mac[] = { unsigned int localPort = 8888; // local port to listen for UDP packets -IPAddress timeServer(192, 43, 244, 18); // time.nist.gov NTP server +IPAddress timeServer(132, 163, 4, 101); // time-a.timefreq.bldrdoc.gov NTP server +// IPAddress timeServer(132, 163, 4, 102); // time-b.timefreq.bldrdoc.gov NTP server +// IPAddress timeServer(132, 163, 4, 103); // time-c.timefreq.bldrdoc.gov NTP server const int NTP_PACKET_SIZE= 48; // NTP time stamp is in the first 48 bytes of the message