|
ProtoCore v1.0.16
Deterministic, zero-heap network stack for embedded targets
|
Optional SNTP wall-clock time sync (PROTOCORE_ENABLE_NTP). More...
#include "protocore_config.h"Go to the source code of this file.
Optional SNTP wall-clock time sync (PROTOCORE_ENABLE_NTP).
Starts a client, reports sync state, and formats the current time.
One client, the library's own: it asks a server over the UDP listener, checks the reply echoes the request it answers, and keeps the epoch in its own state; the monotonic clock carries it between syncs and nothing in libc moves. It takes a literal address rather than a name - it has no resolver of its own - and reports UTC, so the POSIX TZ argument is accepted and ignored.
Definition in file ntp_service.h.