NTP Client for the mbed networking libraries. The small change to this version is that there can be only one cause for the return value zero.

Dependents:   WattEye

Fork of NTPClient by Donatien Garnier

Revision:
7:170915215fd4
Parent:
4:881559865a93
Child:
8:802277794640
--- a/NTPClient.cpp	Sat Oct 11 17:26:43 2014 +0000
+++ b/NTPClient.cpp	Tue Jul 07 17:09:36 2015 +0000
@@ -119,7 +119,7 @@
     }
   } while( strcmp(outEndpoint.get_address(), inEndpoint.get_address()) != 0 );
 
-  if(ret < sizeof(NTPPacket)) //TODO: Accept chunks
+  if(ret < (int)sizeof(NTPPacket)) //TODO: Accept chunks
   {
     ERR("Receive packet size does not match");
     m_sock.close();