sntp_client_misc.h
error_t sntpClientSendRequest(SntpClientContext *context)
Send request to the NTP server.
Definition: sntp_client_misc.c:99
error_t sntpClientCheckResponse(SntpClientContext *context, const IpAddr *ipAddr, uint16_t port, const uint8_t *message, size_t length)
Check whether the NTP response is valid.
Definition: sntp_client_misc.c:245
error_t sntpClientOpenConnection(SntpClientContext *context)
Open UDP connection.
Definition: sntp_client_misc.c:52
error_t sntpClientCheckTimeout(SntpClientContext *context)
Determine whether a timeout error has occurred.
Definition: sntp_client_misc.c:343
void sntpClientCloseConnection(SntpClientContext *context)
Close UDP connection.
Definition: sntp_client_misc.c:81
error_t sntpClientParseResponse(SntpClientContext *context, NtpTimestamp *timestamp)
Parse NTP server's response.
Definition: sntp_client_misc.c:301
error_t sntpClientReceiveResponse(SntpClientContext *context)
Wait for NTP server's response.
Definition: sntp_client_misc.c:158
TCP/IP stack core.
SNTP client (Simple Network Time Protocol)