Request time to a SNTP server.
Hello
Files
sntp-c.h/sntp-c.c
Prototype
CPU_BOOLEAN SNTPc_ReqRemoteTime (CPU_CHAR *p_server, SNTP_PKT *ppkt)
Arguments
p_server Pointer to a string that defined the NTP server. It can be a IPv4/IPv6 address or even a hostname if µC/DNSc is properly initialized.
ppkt Pointer to the SNTP message packet to compute.
Returned Values
If the time request is successful, DEF_TRUE will be returned.
If the time request failed, DEF_TRUE will be returned.
Required Configuration
Notes / Warnings
none.
Example Usage
none.