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#
Type of event being received, indicated by sl_sntp_client_events_t.
Status of the call which triggered this response. See https://docs.silabs.com/gecko-platform/latest/platform-common/status for details.
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.
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.
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.
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.
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.
144
of file components/service/sntp/inc/sl_sntp.h