Structure to hold SNTP client response.

The structure contains the response information from the SNTP client, including the event type, status, response data, and the length of the response data.

Public Attributes#

uint8_t

Type of event being received, indicated by sl_sntp_client_events_t.

sl_status_t

Status of the call which triggered this response. See https://docs.silabs.com/gecko-platform/latest/platform-common/status for details.

uint8_t *

Pointer to response data. For SL_SNTP_CLIENT_GET_TIME and SL_SNTP_CLIENT_GET_TIME_DATE events, it is a (uint8_t *) buffer. For SL_SNTP_CLIENT_GET_SERVER_INFO event, it is a pointer to an sl_sntp_server_info_t structure.

uint16_t

Length of the response data.

Public Attribute Documentation#

event_type#

uint8_t sl_sntp_client_response_t::event_type

Type of event being received, indicated by sl_sntp_client_events_t.


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

status#

sl_status_t sl_sntp_client_response_t::status

Status of the call which triggered this response. See https://docs.silabs.com/gecko-platform/latest/platform-common/status for details.


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

data#

uint8_t* sl_sntp_client_response_t::data

Pointer to response data. For SL_SNTP_CLIENT_GET_TIME and SL_SNTP_CLIENT_GET_TIME_DATE events, it is a (uint8_t *) buffer. For SL_SNTP_CLIENT_GET_SERVER_INFO event, it is a pointer to an sl_sntp_server_info_t structure.


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

data_length#

uint16_t sl_sntp_client_response_t::data_length

Length of the response data.


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