10#ifndef TR_REMOTE_CLI_SERVER_H
11#define TR_REMOTE_CLI_SERVER_H
16#ifndef TR_REMOTE_CLI_SEND_BUFFER_SIZE
17#define TR_REMOTE_CLI_SEND_BUFFER_SIZE 4096
20#ifndef TR_REMOTE_CLI_SEND_PACKET_PAYLOAD_SIZE
21#define TR_REMOTE_CLI_SEND_PACKET_PAYLOAD_SIZE 47
24#define TR_REMOTE_CLI_SEND_PACKET_DELAY_MS 100
26#define COLOR_START_CHAR '\033'
27#define COLOR_END_CHAR 'm'
32#if defined(TR_REMOTE_CLI_SERVER_PLUGIN_PRINT_ENABLE) && (TR_REMOTE_CLI_SERVER_PLUGIN_PRINT_ENABLE == 1)
33#define tr_remote_cli_server_printf(...) tr_zcl_printf(__VA_ARGS__)
34#define tr_remote_cli_server_println(...) tr_zcl_println(__VA_ARGS__)
36#define tr_remote_cli_server_printf(...)
37#define tr_remote_cli_server_println(...)
62 zb_uint8_t *new_value,
zb_uint8_t cli_enable
Definition tr_zcl_cmd_structs.h:4007
zb_uint16_t long_poll_interval
Definition tr_zcl_cmd_structs.h:4008
zb_uint8_t * cli_cmd
Definition tr_zcl_cmd_structs.h:4001
zb_bool_t tr_remote_cli_server_cli_command_cb(zb_zcl_parsed_hdr_t *cmd_info, zb_uint8_t endpoint, zb_uint8_t *cli_cmd)
Callback that user can declare to handle remote cli cluster cli command command.
zb_bool_t tr_remote_cli_server_command_received_cb(zb_zcl_parsed_hdr_t *cmd_info)
Callback that user can declare to handle any Remote CLI server commands.
void tr_remote_cli_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 Remote CLI server attribute is about to be written.
void tr_remote_cli_server_init_cb(zb_uint8_t endpoint)
Callback fires when the Remote CLI server cluster plugin is initialized.
zb_bool_t tr_remote_cli_server_enable_remote_cli_cb(zb_zcl_parsed_hdr_t *cmd_info, zb_uint8_t endpoint, zb_uint8_t cli_enable, zb_uint16_t long_poll_interval)
Callback that user can declare to handle remote cli cluster enable remote cli command.
Trident application framework include.
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
common defines needed by both ZCL REMOTE CLI cluster server and client implementations
void tr_remote_cli_server_init(void)