SNTP configuration.

Public Attributes#

uint8_t *

SNTP host name or address.

uint8_t

SNTP method. One of the defines from SNTP Methods.

uint16_t

SNTP timeout.

uint8_t

SNTP flags.

bool

Set to true if smooth sync required.

bool

Set to true to request NTP server config from DHCP.

bool

This is used to refresh server list if NTP provided by DHCP.

Public Attribute Documentation#

server_host_name#

uint8_t* sl_sntp_client_config_t::server_host_name

SNTP host name or address.


Definition at line 123 of file components/service/sntp/inc/sl_sntp.h

sntp_method#

uint8_t sl_sntp_client_config_t::sntp_method

SNTP method. One of the defines from SNTP Methods.


Definition at line 124 of file components/service/sntp/inc/sl_sntp.h

sntp_timeout#

uint16_t sl_sntp_client_config_t::sntp_timeout

SNTP timeout.


Definition at line 125 of file components/service/sntp/inc/sl_sntp.h

flags#

uint8_t sl_sntp_client_config_t::flags

SNTP flags.

Combination of values from SNTP Flags. Note

  • Bits 1-7 are reserved. User must set them to NULL.


Definition at line 126 of file components/service/sntp/inc/sl_sntp.h

event_handler#

sl_sntp_client_event_handler_t sl_sntp_client_config_t::event_handler

SNTP response handler of type sl_sntp_client_event_handler_t.


Definition at line 128 of file components/service/sntp/inc/sl_sntp.h

time_sync_notifiication_handler#

sl_sntp_set_time_sync_notification_handler_t sl_sntp_client_config_t::time_sync_notifiication_handler

Set to true if smooth sync required of type sl_sntp_set_time_sync_notification_handler_t.

Note

  • This feature is currently not supported in Si917 chipsets


Definition at line 130 of file components/service/sntp/inc/sl_sntp.h

smooth_sync#

bool sl_sntp_client_config_t::smooth_sync

Set to true if smooth sync required.

Note

  • This feature is currently not supported in Si917 chipsets


Definition at line 132 of file components/service/sntp/inc/sl_sntp.h

server_from_dhcp#

bool sl_sntp_client_config_t::server_from_dhcp

Set to true to request NTP server config from DHCP.

Note

  • This feature is currently not supported in Si917 chipsets


Definition at line 134 of file components/service/sntp/inc/sl_sntp.h

renew_servers_after_new_ip#

bool sl_sntp_client_config_t::renew_servers_after_new_ip

This is used to refresh server list if NTP provided by DHCP.

Note

  • This feature is currently not supported in 917 chipsets


Definition at line 136 of file components/service/sntp/inc/sl_sntp.h