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 10 Next »


Request time to a SNTP server.

Files

sntp-c.h/sntp-c.c

Prototype

CPU_BOOLEAN  SNTPc_ReqRemoteTime (SNTPc_CFG    *p_cfg,
                                  SNTP_PKT     *ppkt,
							      SNTPc_ERR	   *p_err)

 

Arguments

p_cfg           Pointer to the run-time configuration. See Run-time Configuration for further information. 

ppkt             Pointer to the SNTP message packet to compute.

p_err           Pointer to variable that will receive the return error code from this function

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

  1. If a NULL pointer is passed  as the configuration argument (p_cfg), the function will use the default configuration set at the initialization.  

Example Usage

none.

  • No labels