Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of NTPClient by
Diff: NTPClient.cpp
- Revision:
- 6:510bffa8b3d9
- Parent:
- 5:fe36718063a5
- Child:
- 8:0b96fbd7cfca
diff -r fe36718063a5 -r 510bffa8b3d9 NTPClient.cpp
--- 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));
