Modify to work with Ethernet Interface on NUCLEO F746ZG
Fork of NTPClient by
Diff: NTPClient.h
- Revision:
- 9:c7e324d319ac
- Parent:
- 8:0b96fbd7cfca
diff -r 0b96fbd7cfca -r c7e324d319ac NTPClient.h --- a/NTPClient.h Wed Feb 15 10:48:52 2017 +0800 +++ b/NTPClient.h Wed Apr 05 15:31:29 2017 +0000 @@ -30,8 +30,9 @@ //using std::uint16_t; //using std::uint32_t; +#include "EthernetInterface.h" //#include "NetworkInterface.h" #include "UDPSocket.h" -#include "NetworkInterface.h" + #define NTP_DEFAULT_PORT 123 #define NTP_DEFAULT_TIMEOUT 4000 @@ -56,7 +57,7 @@ Instantiate the NTP client */ // NTPClient(); - NTPClient(NetworkInterface & _m_intf); + NTPClient(EthernetInterface & _m_intf); // NTPClient(NetworkInterface & _m_intf); /**Get current time (blocking) Update the time using the server host Blocks until completion