mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-16 10:03:50 +01:00
sys/net/ntp_packet: add ref to SNTP, fix time
This commit is contained in:
parent
8ab9956ae5
commit
acf10d91b9
@ -14,6 +14,8 @@
|
|||||||
* @brief The NTP packet module provides functionality to manipulate the NTP header
|
* @brief The NTP packet module provides functionality to manipulate the NTP header
|
||||||
* @{
|
* @{
|
||||||
*
|
*
|
||||||
|
* @see An implementation of Simple NTP can be found in @ref net_sntp.
|
||||||
|
*
|
||||||
* @file
|
* @file
|
||||||
* @brief NTP packet definitions
|
* @brief NTP packet definitions
|
||||||
*
|
*
|
||||||
@ -46,7 +48,7 @@ extern "C" {
|
|||||||
#define NTP_PORT (123U) /**< NTP port number */
|
#define NTP_PORT (123U) /**< NTP port number */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Offset in seconds of NTP timestamp (seconds from 1990-01-01 00:00:00 UTC)
|
* @brief Offset in seconds of NTP timestamp (seconds from 1900-01-01 00:00:00 UTC)
|
||||||
* to UNIX timestamp (seconds from 1970-01-01 00:00:00 UTC).
|
* to UNIX timestamp (seconds from 1970-01-01 00:00:00 UTC).
|
||||||
*/
|
*/
|
||||||
#define NTP_UNIX_OFFSET (2208988800)
|
#define NTP_UNIX_OFFSET (2208988800)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user