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#
Command type indicating the type of SNTP command.
IP version of the SNTP server. 4 for IPv4 and 6 for IPv6.
IPv4 address of the SNTP server.
IPv6 address of the SNTP server.
Server IP address, either IPv4 or IPv6.
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.
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.
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.
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.
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.
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
126
of file components/service/sntp/inc/sl_sntp.h