10#ifndef TR_POLL_CONTROL_SERVER_H
11#define TR_POLL_CONTROL_SERVER_H
18#if defined(TR_POLL_CONTROL_SERVER_PLUGIN_PRINT_ENABLE) && (TR_POLL_CONTROL_SERVER_PLUGIN_PRINT_ENABLE == 1)
19#define tr_poll_control_server_printf(...) tr_zcl_printf(__VA_ARGS__)
20#define tr_poll_control_server_println(...) tr_zcl_println(__VA_ARGS__)
22#define tr_poll_control_server_printf(...)
23#define tr_poll_control_server_println(...)
48 zb_uint8_t *new_value,
zb_uint16_t new_short_poll_interval
Definition tr_zcl_cmd_structs.h:898
zb_uint8_t start_fast_polling
Definition tr_zcl_cmd_structs.h:885
zb_uint32_t new_long_poll_interval
Definition tr_zcl_cmd_structs.h:892
zb_uint16_t fast_poll_timeout
Definition tr_zcl_cmd_structs.h:886
void tr_poll_control_server_init_cb(zb_uint8_t endpoint)
Callback fires when the Poll Control server cluster plugin is initialized.
zb_bool_t tr_poll_control_server_set_short_poll_interval_cb(zb_zcl_parsed_hdr_t *cmd_info, zb_uint8_t endpoint, zb_uint16_t new_short_poll_interval)
Callback that user can declare to handle poll control cluster set short poll interval command.
zb_bool_t tr_poll_control_server_command_received_cb(zb_zcl_parsed_hdr_t *cmd_info)
Callback that user can declare to handle any Poll Control server commands.
zb_bool_t tr_poll_control_server_send_check_in_cb(void)
Callback fires when poll control server sends a check in command.
zb_bool_t tr_poll_control_server_fast_poll_stop_cb(zb_zcl_parsed_hdr_t *cmd_info, zb_uint8_t endpoint)
Callback that user can declare to handle poll control cluster fast poll stop command.
zb_bool_t tr_poll_control_server_check_in_response_cb(zb_zcl_parsed_hdr_t *cmd_info, zb_uint8_t endpoint, zb_uint8_t start_fast_polling, zb_uint16_t fast_poll_timeout)
Callback that user can declare to handle poll control cluster check in response command.
void tr_poll_control_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 a poll control server attribute is about to be written.
void tr_poll_control_server_started_cb(void)
Callback fires when poll control server cluster is started.
zb_bool_t tr_poll_control_server_set_long_poll_interval_cb(zb_zcl_parsed_hdr_t *cmd_info, zb_uint8_t endpoint, zb_uint32_t new_long_poll_interval)
Callback that user can declare to handle poll control cluster set long poll interval command.
Trident application framework include.
tr_conn_state_e
Definition tr_af.h:24
zb_uint8_t endpoint
Definition tr_nvram_attr.h:176
zb_uint16_t manuf_code
Definition tr_nvram_attr.h:180
zb_uint16_t attr_id
Definition tr_nvram_attr.h:178
void tr_poll_control_server_connection_state_cb(tr_conn_state_e conn_state)
void tr_poll_control_server_init(void)