Trident IoT Zigbee SDK
Loading...
Searching...
No Matches
Collaboration diagram for Time client Callbacks:

Functions

void tr_time_client_init_cb (zb_uint8_t endpoint)
 Callback fires when the Time client cluster plugin is initialized.
zb_bool_t tr_time_client_command_received_cb (zb_zcl_parsed_hdr_t *cmd_info)
 Callback that user can declare to handle any Time client commands.
void tr_time_client_write_attr_cb (zb_uint8_t endpoint, zb_uint16_t attr_id, zb_uint8_t *new_value, zb_uint16_t manuf_code)
 Callback fires when a Time client attribute is about to be written.
void tr_time_client_received_time_update_cb (zb_uint8_t endpoint, tr_new_zigbee_time_t *new_time)
 Callback fires when a Time client receives an update to the time.
void tr_time_client_server_discovery_complete_cb (zb_bool_t server_found, zb_uint16_t server_address)
 Callback fires when a Time Server Discovery finishes.

Detailed Description



Function Documentation

◆ tr_time_client_command_received_cb()

zb_bool_t tr_time_client_command_received_cb ( zb_zcl_parsed_hdr_t * cmd_info)

Callback that user can declare to handle any Time client commands.

Parameters
cmd_infostruct that contains zcl header info
Returns
ZB_FALSE to allow framework to continue processing the command

◆ tr_time_client_init_cb()

void tr_time_client_init_cb ( zb_uint8_t endpoint)

Callback fires when the Time client cluster plugin is initialized.

Parameters
endpointdevice endpoint being initialized

◆ tr_time_client_received_time_update_cb()

void tr_time_client_received_time_update_cb ( zb_uint8_t endpoint,
tr_new_zigbee_time_t * new_time )

Callback fires when a Time client receives an update to the time.

Parameters
endpointdevice endpoint
new_timestruct with the info on the new time that was received

◆ tr_time_client_server_discovery_complete_cb()

void tr_time_client_server_discovery_complete_cb ( zb_bool_t server_found,
zb_uint16_t server_address )

Callback fires when a Time Server Discovery finishes.

Parameters
server_foundboolean to say if a server was discovered
server_addressif server_found is ZB_TRUE then this is the address discovered

◆ tr_time_client_write_attr_cb()

void tr_time_client_write_attr_cb ( zb_uint8_t endpoint,
zb_uint16_t attr_id,
zb_uint8_t * new_value,
zb_uint16_t manuf_code )

Callback fires when a Time client attribute is about to be written.

Parameters
endpointdevice endpoint
attr_idZCL attribute id
new_valuepointer to the new attribute value
manuf_codemanufacturer specific code