Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Request time to a SNTP server.

Files

sntp-c.h/sntp-c.c

Prototype

 

Code Block
languagecpp
CPU_BOOLEAN  SNTPc_ReqRemoteTime (NET_SOCK_ADDRCPU_CHAR     *p_server_ip,
                                  SNTP_PKT       *ppkt)

 

Arguments

p_server         Socket address object describing the SNTP server to send the request 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

Module Configuration.

...