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   "pool.ntp.org"
 
#define NTP_DEFAULT_QUERY_INTERVAL_SECONDS   600
 
#define NTP_RESPONSE_TIMEOUT_MS   20000
 

Typedefs

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

Detailed Description

Provides NTP client.