Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 7 Next »


Request time to a SNTP server.


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

Module Configuration.

Notes / Warnings

none.

Example Usage

none.

  • No labels