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

Files at this revision

API Documentation at this revision

Comitter:
WiredHome
Date:
Tue Jul 07 17:09:36 2015 +0000
Parent:
6:bef14adc58c4
Child:
8:802277794640
Commit message:
warning reduction.

Changed in this revision

NTPClient.cpp Show annotated file Show diff for this revision Revisions of this file
--- 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();