NTP client to get UTC time from the internet time servers

Dependents:   NTPClient_HelloWorld

Fork of NTPClient by ST Expansion SW Team

Revision:
5:fe36718063a5
Parent:
2:9a64a50df235
Child:
6:510bffa8b3d9
diff -r 881559865a93 -r fe36718063a5 NTPClient.h
--- a/NTPClient.h	Sun Aug 05 16:10:57 2012 +0000
+++ b/NTPClient.h	Wed Dec 14 16:23:38 2016 +0000
@@ -54,8 +54,8 @@
   /**
   Instantiate the NTP client
   */
-  NTPClient();
-
+ // NTPClient();
+  NTPClient::NTPClient(NetworkStack & _m_intf);
   /**Get current time (blocking)
   Update the time using the server host
   Blocks until completion
@@ -94,8 +94,8 @@
     uint32_t txTm_f;
   } __attribute__ ((packed));
   
+  NetworkStack & m_intf;  // WiFi interface  
   UDPSocket m_sock;
-
 };