NTP client to get UTC time from the internet time servers
Dependents: NTPClient_HelloWorld
Fork of NTPClient by
Diff: NTPClient.cpp
- Revision:
- 6:510bffa8b3d9
- Parent:
- 5:fe36718063a5
--- a/NTPClient.cpp Wed Dec 14 16:23:38 2016 +0000 +++ b/NTPClient.cpp Mon Jan 02 15:44:40 2017 +0000 @@ -107,7 +107,7 @@ //Create & bind socket if (m_sock.open(&m_intf) < 0) printf ("ERROR sock open \n\r"); - m_sock.set_blocking(true); //Set blocking LICIO + m_sock.set_timeout(timeout); struct NTPPacket pkt; memset (&pkt, 0, sizeof(NTPPacket));