Trident IoT Zigbee SDK
Loading...
Searching...
No Matches
tr_remote_cli_server.h
Go to the documentation of this file.
1
10#ifndef TR_REMOTE_CLI_SERVER_H
11#define TR_REMOTE_CLI_SERVER_H
12
13#include "tr_af.h"
15
16#ifndef TR_REMOTE_CLI_SEND_BUFFER_SIZE
17#define TR_REMOTE_CLI_SEND_BUFFER_SIZE 4096
18#endif
19
20#ifndef TR_REMOTE_CLI_SEND_PACKET_PAYLOAD_SIZE
21#define TR_REMOTE_CLI_SEND_PACKET_PAYLOAD_SIZE 47
22#endif
23
24#define TR_REMOTE_CLI_SEND_PACKET_DELAY_MS 100
25
26#define COLOR_START_CHAR '\033'
27#define COLOR_END_CHAR 'm'
28
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__)
35#else
36#define tr_remote_cli_server_printf(...)
37#define tr_remote_cli_server_println(...)
38#endif
39
45
49
53zb_bool_t tr_remote_cli_server_command_received_cb(zb_zcl_parsed_hdr_t *cmd_info);
54
61 zb_uint16_t attr_id,
62 zb_uint8_t *new_value,
63 zb_uint16_t manuf_code);
64
70zb_bool_t tr_remote_cli_server_cli_command_cb(zb_zcl_parsed_hdr_t *cmd_info,
71 zb_uint8_t endpoint,
72 zb_uint8_t *cli_cmd);
73
80zb_bool_t tr_remote_cli_server_enable_remote_cli_cb(zb_zcl_parsed_hdr_t *cmd_info,
81 zb_uint8_t endpoint,
82 zb_uint8_t cli_enable,
83 zb_uint16_t long_poll_interval);
84
86
91
92#endif // TR_REMOTE_CLI_SERVER_H
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)