CONFIG_NET_CONFIG_CLOCK_SNTP_INIT¶
Initialize system clock using SNTP on application startup
Type: bool
Help¶
Perform an SNTP request over networking to get and absolute
wall clock time, and initialize system time from it, so
functions like time(), gettimeofday(), etc. returned the
correct absolute time (no just time since system startup).
Requires networking.
Direct dependencies¶
SNTP && POSIX_CLOCK && NETWORKING
(Includes any dependencies from ifs and menus.)
Defaults¶
No defaults. Implicitly defaults to n.
Kconfig definition¶
At <Zephyr Subsystem>/net/lib/config/Kconfig:190
Included via Kconfig:8 → Kconfig.zephyr:44 → <Zephyr Subsystem>/Kconfig:39 → <Zephyr Subsystem>/net/Kconfig:89 → <Zephyr Subsystem>/net/lib/Kconfig:28
Menu path: (Top) → Sub Systems and OS Services → Networking → Link layer and IP networking support → Network Libraries
config NET_CONFIG_CLOCK_SNTP_INIT
    bool "Initialize system clock using SNTP on application startup"
    depends on SNTP && POSIX_CLOCK && NETWORKING
    help
      Perform an SNTP request over networking to get and absolute
      wall clock time, and initialize system time from it, so
      functions like time(), gettimeofday(), etc. returned the
      correct absolute time (no just time since system startup).
      Requires networking.
(The ‘depends on’ condition includes propagated dependencies from ifs and menus.)