Trident IoT Zigbee SDK
Loading...
Searching...
No Matches
tr_basic_client.h
Go to the documentation of this file.
1
10#ifndef TR_BASIC_CLIENT_H
11#define TR_BASIC_CLIENT_H
12
13#include "tr_af.h"
14
18#if defined(TR_BASIC_CLIENT_PLUGIN_PRINT_ENABLE) && (TR_BASIC_CLIENT_PLUGIN_PRINT_ENABLE == 1)
19#define tr_basic_client_printf(...) tr_zcl_printf(__VA_ARGS__)
20#define tr_basic_client_println(...) tr_zcl_println(__VA_ARGS__)
21#else
22#define tr_basic_client_printf(...)
23#define tr_basic_client_println(...)
24#endif
25
31
35
39zb_bool_t tr_basic_client_command_received_cb(zb_zcl_parsed_hdr_t *cmd_info);
40
47 zb_uint16_t attr_id,
48 zb_uint8_t *new_value,
49 zb_uint16_t manuf_code);
50
51
53
58
59#endif // TR_BASIC_CLIENT_H
void tr_basic_client_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 Basic client attribute is about to be written.
void tr_basic_client_init_cb(zb_uint8_t endpoint)
Callback fires when the Basic client cluster plugin is initialized.
zb_bool_t tr_basic_client_command_received_cb(zb_zcl_parsed_hdr_t *cmd_info)
Callback that user can declare to handle any Basic client commands.
Trident application framework include.
void tr_basic_client_init(void)
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