The extracted NTP client from Segundos NetServices library, for use with the [[http://mbed.org/users/hlipka/libraries/NetServicesMin|NetServicesMin]] library. The only fixed bug is the memory leak / OOM problem. Needs the [[http://mbed.org/users/hlipka/libraries/DNSResolver|DNSResolver]] library as well.
Dependents: SPIVFDclock LPC1768_AppBoard_Internet_LCD_Clock
NTPClient Class Reference
The NTP client is a simple UDP client that will update the mbed's RTC. More...
#include <NTPClient.h>
Public Member Functions | |
NTPClient () | |
Instantiates the NTP client. | |
NTPResult | setTime (const Host &host) |
Updates the time using the server host, blocks until completion. |
Detailed Description
The NTP client is a simple UDP client that will update the mbed's RTC.
Definition at line 76 of file NTPClient.h.
Constructor & Destructor Documentation
NTPClient | ( | ) |
Instantiates the NTP client.
Definition at line 46 of file NTPClient.cpp.
Member Function Documentation
NTPResult setTime | ( | const Host & | host ) |
Updates the time using the server host, blocks until completion.
- Parameters:
-
host : NTP server
Definition at line 64 of file NTPClient.cpp.
Generated on Wed Jul 13 2022 20:04:13 by 1.7.2