Trident IoT Zigbee SDK
Loading...
Searching...
No Matches
Collaboration diagram for On/off server Callbacks:

Functions

void tr_on_off_server_init_cb (zb_uint8_t endpoint)
 Callback fires when the On/off server cluster plugin is initialized.
zb_bool_t tr_on_off_server_command_received_cb (zb_zcl_parsed_hdr_t *cmd_info)
 Callback that user can declare to handle any On/off server commands.
void tr_on_off_server_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 an On/off server attribute is about to be written.
zb_bool_t tr_on_off_server_off_cb (zb_zcl_parsed_hdr_t *cmd_info, zb_uint8_t endpoint)
 Callback that user can declare to handle on/off cluster off command.
zb_bool_t tr_on_off_server_on_cb (zb_zcl_parsed_hdr_t *cmd_info, zb_uint8_t endpoint)
 Callback that user can declare to handle on/off cluster on command.
zb_bool_t tr_on_off_server_toggle_cb (zb_zcl_parsed_hdr_t *cmd_info, zb_uint8_t endpoint, zb_uint8_t current_on_off_state)
 Callback that user can declare to handle on/off cluster toggle command.
zb_bool_t tr_on_off_server_off_with_effect_cb (zb_zcl_parsed_hdr_t *cmd_info, zb_uint8_t endpoint, zb_uint8_t effect_id, zb_uint8_t effect_variant)
 Callback that user can declare to handle on/off cluster off with effect command.
zb_bool_t tr_on_off_server_on_with_recall_global_scene_cb (zb_zcl_parsed_hdr_t *cmd_info, zb_uint8_t endpoint)
 Callback that user can declare to handle on/off cluster on with recall global scene command.
zb_bool_t tr_on_off_server_on_with_timed_off_cb (zb_zcl_parsed_hdr_t *cmd_info, zb_uint8_t endpoint, zb_uint8_t on_off_control, zb_uint16_t on_time, zb_uint16_t off_wait_time)
 Callback that user can declare to handle on/off cluster on with timed off command.

Detailed Description



Function Documentation

◆ tr_on_off_server_command_received_cb()

zb_bool_t tr_on_off_server_command_received_cb ( zb_zcl_parsed_hdr_t * cmd_info)

Callback that user can declare to handle any On/off server commands.

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

◆ tr_on_off_server_init_cb()

void tr_on_off_server_init_cb ( zb_uint8_t endpoint)

Callback fires when the On/off server cluster plugin is initialized.

Parameters
endpointdevice endpoint being initialized

◆ tr_on_off_server_off_cb()

zb_bool_t tr_on_off_server_off_cb ( zb_zcl_parsed_hdr_t * cmd_info,
zb_uint8_t endpoint )

Callback that user can declare to handle on/off cluster off command.

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

◆ tr_on_off_server_off_with_effect_cb()

zb_bool_t tr_on_off_server_off_with_effect_cb ( zb_zcl_parsed_hdr_t * cmd_info,
zb_uint8_t endpoint,
zb_uint8_t effect_id,
zb_uint8_t effect_variant )

Callback that user can declare to handle on/off cluster off with effect command.

Parameters
cmd_infostruct that contains zcl header info
endpointdevice endpoint
effect_ideffect for the command
effect_varianteffect variant for the command
Returns
ZB_FALSE to allow framework to continue processing the command

◆ tr_on_off_server_on_cb()

zb_bool_t tr_on_off_server_on_cb ( zb_zcl_parsed_hdr_t * cmd_info,
zb_uint8_t endpoint )

Callback that user can declare to handle on/off cluster on command.

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

◆ tr_on_off_server_on_with_recall_global_scene_cb()

zb_bool_t tr_on_off_server_on_with_recall_global_scene_cb ( zb_zcl_parsed_hdr_t * cmd_info,
zb_uint8_t endpoint )

Callback that user can declare to handle on/off cluster on with recall global scene command.

Parameters
cmd_infostruct that contains zcl header info
endpointdevice endpoint

◆ tr_on_off_server_on_with_timed_off_cb()

zb_bool_t tr_on_off_server_on_with_timed_off_cb ( zb_zcl_parsed_hdr_t * cmd_info,
zb_uint8_t endpoint,
zb_uint8_t on_off_control,
zb_uint16_t on_time,
zb_uint16_t off_wait_time )

Callback that user can declare to handle on/off cluster on with timed off command.

Parameters
cmd_infostruct that contains zcl header info
endpointdevice endpoint
on_off_controlon off control bitmask ("accept only when on" if bit 0 is set)
on_timeon time for the command
off_wait_timeoff wait time for the command
Returns
ZB_FALSE to allow framework to continue processing the command

◆ tr_on_off_server_toggle_cb()

zb_bool_t tr_on_off_server_toggle_cb ( zb_zcl_parsed_hdr_t * cmd_info,
zb_uint8_t endpoint,
zb_uint8_t current_on_off_state )

Callback that user can declare to handle on/off cluster toggle command.

Parameters
cmd_infostruct that contains zcl header info
endpointdevice endpoint
current_on_off_statecurrent value, before the toggle, of the on_off attribute
Returns
ZB_FALSE to allow framework to continue processing the command

◆ tr_on_off_server_write_attr_cb()

void tr_on_off_server_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 an On/off server attribute is about to be written.

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