Network Time Protocol client
Provides NTP client. More...
Collaboration diagram for Network Time Protocol client:
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)> |
Detailed Description
Provides NTP client.
Macro Definition Documentation
◆ NTP_CONNECTION_TIMEOUT_MS
| #define NTP_CONNECTION_TIMEOUT_MS 1666U |
Time to retry query when network connection unavailable.
◆ NTP_DEFAULT_AUTOQUERY_SECONDS
| #define NTP_DEFAULT_AUTOQUERY_SECONDS 30U |
◆ NTP_DEFAULT_SERVER
| #define NTP_DEFAULT_SERVER F("pool.ntp.org") |
◆ NTP_MIN_AUTOQUERY_SECONDS
| #define NTP_MIN_AUTOQUERY_SECONDS 10U |
Minimum autoquery interval.
◆ NTP_MODE_CLIENT
| #define NTP_MODE_CLIENT 3 |
◆ NTP_MODE_SERVER
| #define NTP_MODE_SERVER 4 |
◆ NTP_PACKET_SIZE
| #define NTP_PACKET_SIZE 48 |
◆ NTP_PORT
| #define NTP_PORT 123 |
◆ NTP_RESPONSE_TIMEOUT_MS
| #define NTP_RESPONSE_TIMEOUT_MS 20000U |
Time to wait before retrying NTP query.
◆ NTP_VERSION
| #define NTP_VERSION 4 |
Typedef Documentation
◆ NtpTimeResultDelegate
| using NtpTimeResultDelegate = Delegate<void(NtpClient& client, time_t ntpTime)> |
1.9.1