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
48
55 zb_uint16_t attr_id,
56 zb_uint8_t *new_value,
57 zb_uint16_t manuf_code);
58
60
65
66#endif // TR_REMOTE_CLI_SERVER_H
void tr_remote_cli_server_init_cb(void)
Callback fires when remote cli server cluster is initialized.
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 a remote cli server attribute is about to be written.
Trident application framework include.
zb_uint8_t endpoint
Definition tr_nvram_attr.h:23
zb_uint16_t manuf_code
Definition tr_nvram_attr.h:27
zb_uint16_t attr_id
Definition tr_nvram_attr.h:25
TODO - documentation.
void tr_remote_cli_server_init(void)