Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Published by Scroll Versions from this space and version 2.00.00


Request time to a SNTP server.

Files

sntp-c.h/sntp-c.c

Prototype

 

Code Block
language

...

micrium
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.