Sming Framework API
Sming - Open Source framework for high efficiency WiFi SoC ESP8266 native development with C++ language.
Network Time Protocol client

Provides NTP client. More...

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

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

Detailed Description

Provides NTP client.

Macro Definition Documentation

#define NTP_CONNECTION_TIMEOUT_MS   1666U

Time to retry query when network connection unavailable.

#define NTP_MIN_AUTOQUERY_SECONDS   10U

Minimum autoquery interval.

#define NTP_RESPONSE_TIMEOUT_MS   20000U

Time to wait before retrying NTP query.