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