Fork of NTPClient from ST, modified to work with GCC and Mbed OS5
Fork of NTPClient by
Diff: NTPClient.cpp
- Revision:
- 6:510bffa8b3d9
- Parent:
- 5:fe36718063a5
- Child:
- 8:0b96fbd7cfca
--- 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));
