Request time to a SNTP server.
Files
sntp-c.h/sntp-c.c
Prototype
Code Block | |
---|---|
|
...
| |
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
Notes / Warnings
...
- 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.