Compute the local time offset from an SNTP packet.
Files
sntp-c.h/sntp-c.c
Prototype
CPU_INT32U SNTPc_GetRemoteTime_s (SNTP_PKT *ppkt);
Arguments
ppkt Pointer to the SNTP message packet to compute.
Returned Values
Corrected time
Required Configuration
Notes / Warnings
- Only the integer part of the offset is preserved when applying it to the local time.
Example Usage
none.