Structure to hold SNTP Server Information response.

This structure contains the information about the SNTP server, including the command type, IP version, server IP address, and SNTP method.

Public Attributes#

uint8_t

Command type indicating the type of SNTP command.

uint8_t

IP version of the SNTP server. 4 for IPv4 and 6 for IPv6.

uint8_t

IPv4 address of the SNTP server.

unsigned long

IPv6 address of the SNTP server.

union SL_ATTRIBUTE_PACKED::@0

Server IP address, either IPv4 or IPv6.

uint8_t

SNTP server method used for synchronization.

Public Attribute Documentation#

command_type#

uint8_t SL_ATTRIBUTE_PACKED::command_type

Command type indicating the type of SNTP command.


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

ip_version#

uint8_t SL_ATTRIBUTE_PACKED::ip_version

IP version of the SNTP server. 4 for IPv4 and 6 for IPv6.


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

ipv4_address#

uint8_t SL_ATTRIBUTE_PACKED::ipv4_address[4]

IPv4 address of the SNTP server.


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

ipv6_address#

unsigned long SL_ATTRIBUTE_PACKED::ipv6_address[4]

IPv6 address of the SNTP server.


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

server_ip_address#

union SL_ATTRIBUTE_PACKED::@0 SL_ATTRIBUTE_PACKED::server_ip_address

Server IP address, either IPv4 or IPv6.


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

sntp_method#

uint8_t SL_ATTRIBUTE_PACKED::sntp_method

SNTP server method used for synchronization.

Supported methods:

  • 1: Broadcast mode

  • 2: Unicast mode


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