This is the documentation for the latest (main) development branch of Zephyr. If you are looking for the documentation of previous releases, use the drop-down menu on the left and select the desired version.

CONFIG_NET_CONFIG_SNTP_INIT_SERVER

SNTP server to use for system clock init

Type: string

Help

Zephyr does not provide default setting for this option. Each
application and vendor should choose a suitable setting based
on their locality, needs, and server's terms of service. See
e.g. server information at
https://support.ntp.org/bin/view/Servers/NTPPoolServers

Direct dependencies

NET_CONFIG_CLOCK_SNTP_INIT && NETWORKING

(Includes any dependencies from ifs and menus.)

Default

  • “”

Kconfig definition

At subsys/net/lib/config/Kconfig:202

Included via Kconfig:8Kconfig.zephyr:44subsys/Kconfig:39subsys/net/Kconfig:89subsys/net/lib/Kconfig:28

Menu path: (Top) → Sub Systems and OS Services → Networking → Link layer and IP networking support → Network Libraries → Initialize system clock using SNTP on application startup

config NET_CONFIG_SNTP_INIT_SERVER
    string "SNTP server to use for system clock init"
    default ""
    depends on NET_CONFIG_CLOCK_SNTP_INIT && NETWORKING
    help
      Zephyr does not provide default setting for this option. Each
      application and vendor should choose a suitable setting based
      on their locality, needs, and server's terms of service. See
      e.g. server information at
      https://support.ntp.org/bin/view/Servers/NTPPoolServers

(The ‘depends on’ condition includes propagated dependencies from ifs and menus.)