Forked to make it work with mbed-os 5.3

Dependents:   NTPClient_example mbed_vfd_ntp

Fork of NTPClient by Donatien Garnier

Revision:
5:175284afeb38
Parent:
2:9a64a50df235
--- a/NTPClient.h	Sun Aug 05 16:10:57 2012 +0000
+++ b/NTPClient.h	Fri Jan 06 13:45:37 2017 +0000
@@ -30,6 +30,7 @@
 using std::uint16_t;
 using std::uint32_t;
 
+#include "NetworkStack.h"
 #include "UDPSocket.h"
 
 #define NTP_DEFAULT_PORT 123
@@ -54,7 +55,7 @@
   /**
   Instantiate the NTP client
   */
-  NTPClient();
+  NTPClient(NetworkInterface& p_networkInterface);
 
   /**Get current time (blocking)
   Update the time using the server host
@@ -95,7 +96,7 @@
   } __attribute__ ((packed));
   
   UDPSocket m_sock;
-
+  NetworkInterface& m_net;
 };