NTP client to get UTC time from the internet time servers
Dependents: NTPClient_HelloWorld
Fork of NTPClient by
Diff: NTPClient.h
- Revision:
- 6:510bffa8b3d9
- Parent:
- 5:fe36718063a5
- Child:
- 7:2ac816b0f4ab
--- a/NTPClient.h Wed Dec 14 16:23:38 2016 +0000 +++ b/NTPClient.h Mon Jan 02 15:44:40 2017 +0000 @@ -64,7 +64,7 @@ @param timeout waiting timeout in ms (osWaitForever for blocking function, not recommended) @return 0 on success, NTP error code (<0) on failure */ - NTPResult setTime(const char* host, uint16_t port = NTP_DEFAULT_PORT, uint32_t timeout = NTP_DEFAULT_TIMEOUT); //Blocking + NTPResult setTime(const char* host, uint16_t port = NTP_DEFAULT_PORT, uint32_t timeout = NTP_DEFAULT_TIMEOUT); private: struct NTPPacket //See RFC 4330 for Simple NTP