NTP Client for the mbed networking libraries. The small change to this version is that there can be only one cause for the return value zero.
Fork of NTPClient by
Diff: NTPClient.h
- Revision:
- 6:bef14adc58c4
- Parent:
- 5:7ad0af977056
- Child:
- 8:802277794640
diff -r 7ad0af977056 -r bef14adc58c4 NTPClient.h --- a/NTPClient.h Sun Jun 22 20:54:44 2014 +0000 +++ b/NTPClient.h Sat Oct 11 17:26:43 2014 +0000 @@ -59,9 +59,9 @@ /**Get current time (blocking) Update the time using the server host Blocks until completion - @param host NTP server IPv4 address or hostname (will be resolved via DNS) - @param port port to use; defaults to 123 - @param timeout waiting timeout in ms (osWaitForever for blocking function, not recommended) + @param[in] host NTP server IPv4 address or hostname (will be resolved via DNS) + @param[in] port port to use; defaults to 123 + @param[in] 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