Modify to work with Ethernet Interface on NUCLEO F746ZG
Fork of NTPClient by
Revision 9:c7e324d319ac, committed 2017-04-05
- Comitter:
- fmanzano_dtk
- Date:
- Wed Apr 05 15:31:29 2017 +0000
- Parent:
- 8:0b96fbd7cfca
- Commit message:
- Modify to work with EthernetInterface on NUCLEO-F746ZG
Changed in this revision
NTPClient.cpp | Show annotated file Show diff for this revision Revisions of this file |
NTPClient.h | Show annotated file Show diff for this revision Revisions of this file |
diff -r 0b96fbd7cfca -r c7e324d319ac NTPClient.cpp --- a/NTPClient.cpp Wed Feb 15 10:48:52 2017 +0800 +++ b/NTPClient.cpp Wed Apr 05 15:31:29 2017 +0000 @@ -33,7 +33,7 @@ #define ERR(x, ...) #endif -#include "NetworkInterface.h" +#include "EthernetInterface.h" // #include "NetworkInterface.h" #include "NTPClient.h" #include "UDPSocket.h" @@ -49,7 +49,7 @@ }*/ -NTPClient::NTPClient(NetworkInterface & _m_intf) : m_intf(_m_intf) +NTPClient::NTPClient(EthernetInterface & _m_intf) : m_intf(_m_intf) // NTPClient::NTPClient(NetworkInterface & _m_intf) : m_intf(_m_intf) { }
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