NtpClient.h File Reference
#include "UdpConnection.h"
#include "Platform/System.h"
#include "Timer.h"
#include "DateTime.h"
Include dependency graph for NtpClient.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  NtpClient
 NTP client class. More...
 

Macros

#define NTP_PORT   123
 
#define NTP_PACKET_SIZE   48
 
#define NTP_VERSION   4
 
#define NTP_MODE_CLIENT   3
 
#define NTP_MODE_SERVER   4
 
#define NTP_DEFAULT_SERVER   F("pool.ntp.org")
 
#define NTP_DEFAULT_AUTOQUERY_SECONDS   30U
 
#define NTP_MIN_AUTOQUERY_SECONDS   10U
 Minimum autoquery interval. More...
 
#define NTP_CONNECTION_TIMEOUT_MS   1666U
 Time to retry query when network connection unavailable. More...
 
#define NTP_RESPONSE_TIMEOUT_MS   20000U
 Time to wait before retrying NTP query. More...
 

Typedefs

using NtpTimeResultDelegate = Delegate< void(NtpClient &client, time_t ntpTime)>