Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of NTPClient by
Diff: NTPClient.h
- Revision:
- 8:0b96fbd7cfca
- Parent:
- 7:2ac816b0f4ab
diff -r 2ac816b0f4ab -r 0b96fbd7cfca NTPClient.h
--- a/NTPClient.h Tue Jan 03 13:28:59 2017 +0000
+++ b/NTPClient.h Wed Feb 15 10:48:52 2017 +0800
@@ -24,13 +24,14 @@
#ifndef NTPCLIENT_H_
#define NTPCLIENT_H_
-#include <cstdint>
+#include <stdint.h>
-using std::uint8_t;
-using std::uint16_t;
-using std::uint32_t;
+//using std::uint8_t;
+//using std::uint16_t;
+//using std::uint32_t;
#include "UDPSocket.h"
+#include "NetworkInterface.h"
#define NTP_DEFAULT_PORT 123
#define NTP_DEFAULT_TIMEOUT 4000
@@ -55,7 +56,7 @@
Instantiate the NTP client
*/
// NTPClient();
- NTPClient(NetworkStack & _m_intf);
+ NTPClient(NetworkInterface & _m_intf);
/**Get current time (blocking)
Update the time using the server host
Blocks until completion
@@ -94,7 +95,7 @@
uint32_t txTm_f;
} __attribute__ ((packed));
- NetworkStack & m_intf; // WiFi interface
+ NetworkInterface & m_intf; // WiFi interface
UDPSocket m_sock;
};
