Trident IoT Zigbee SDK
 
Loading...
Searching...
No Matches
tr_plugin_config.h
Go to the documentation of this file.
1
10#ifndef TR_PLUGIN_CONFIG_H
11#define TR_PLUGIN_CONFIG_H
12
13#include <stdio.h>
14
15#ifdef TR_CLI_PROMPT
16#undef TR_CLI_PROMPT
17#endif
18#define TR_CLI_PROMPT "bulb> "
19
20#ifdef TR_CLI_MAX_PROMPT_LEN
21#undef TR_CLI_MAX_PROMPT_LEN
22#endif
23#define TR_CLI_MAX_PROMPT_LEN sizeof(TR_CLI_PROMPT)
24
25// Plugin CLI Configs
26#define TR_GROUPS_SERVER_CLI_ENABLE
27#define TR_IDENTIFY_CLIENT_CLI_ENABLE
28#define TR_OVER_THE_AIR_BOOTLOADING_CLIENT_CLI_ENABLE
29#define TR_REMOTE_CLI_CLIENT_CLI_ENABLE
30
31// Debug print user configuration
32#ifndef TR_TEST_BUILD
33#define TR_DEBUG_PRINT_COLOR_ENABLED
34#endif
35
36#define TR_DEBUG_PRINT_STACK_ENABLED
37#define TR_DEBUG_PRINT_CORE_ENABLED
38#define TR_DEBUG_PRINT_APP_ENABLED
39#define TR_DEBUG_PRINT_ZCL_ENABLED
40#define TR_DEBUG_PRINT_RX_MSGS_ENABLED
41
42// Debug print color configuration
43#ifdef TR_DEBUG_PRINT_COLOR_ENABLED
44#define TR_DEBUG_PRINT_STACK_COLOR DEBUG_BLUE
45#define TR_DEBUG_PRINT_CORE_COLOR DEBUG_DEFAULT
46#define TR_DEBUG_PRINT_APP_COLOR DEBUG_MAGENTA
47#define TR_DEBUG_PRINT_ZCL_COLOR DEBUG_GREEN
48#define TR_DEBUG_PRINT_RX_MSGS_COLOR DEBUG_YELLOW
49#endif
50
51// Plugin Enable Configs
52#define TR_NETWORK_REJOIN_PLUGIN_ENABLE
53#define TR_BASIC_SERVER_PLUGIN_ENABLE
54#define TR_GROUPS_SERVER_PLUGIN_ENABLE
55#define TR_IDENTIFY_CLIENT_PLUGIN_ENABLE
56#define TR_IDENTIFY_SERVER_PLUGIN_ENABLE
57#define TR_ON_OFF_SERVER_PLUGIN_ENABLE
58#define TR_OVER_THE_AIR_BOOTLOADING_CLIENT_PLUGIN_ENABLE
59#define TR_REMOTE_CLI_CLIENT_PLUGIN_ENABLE
60#define TR_REMOTE_CLI_SERVER_PLUGIN_ENABLE
61#define TR_SCENES_SERVER_PLUGIN_ENABLE
62
63// Plugin Print Configs
64#define TR_NETWORK_REJOIN_PLUGIN_PRINT_ENABLE 1
65#define TR_BASIC_SERVER_PLUGIN_PRINT_ENABLE 1
66#define TR_GROUPS_SERVER_PLUGIN_PRINT_ENABLE 1
67#define TR_IDENTIFY_CLIENT_PLUGIN_PRINT_ENABLE 1
68#define TR_IDENTIFY_SERVER_PLUGIN_PRINT_ENABLE 1
69#define TR_ON_OFF_SERVER_PLUGIN_PRINT_ENABLE 1
70#define TR_OVER_THE_AIR_BOOTLOADING_CLIENT_PLUGIN_PRINT_ENABLE 1
71#define TR_REMOTE_CLI_CLIENT_PLUGIN_PRINT_ENABLE 1
72#define TR_REMOTE_CLI_SERVER_PLUGIN_PRINT_ENABLE 1
73#define TR_SCENES_SERVER_PLUGIN_PRINT_ENABLE 1
74
75// Channel Mask Configs
76#define TR_PRIMARY_CHANNEL_MASK 0x02108800
77#define TR_SECONDARY_CHANNEL_MASK 0x05EF7000
78
79// End-Device Keepalive Configs
80#define TR_ED_AGING_TIMEOUT ED_AGING_TIMEOUT_64MIN
81#define TR_KEEPALIVE_INTERVAL_MS 300000
82#define TR_KEEPALIVE_METHOD BOTH_KEEPALIVE_METHODS
83
84// Network Rejoin Plugin Configs
85#define TR_NWK_REJOIN_DELAY_MULTIPLIER 2
86#define TR_NWK_REJOIN_INITIAL_DELAY_SEC 1
87#define TR_NWK_REJOIN_MAX_DELAY_SEC 900
88
89// Groups Server Plugin Configs
90#define TR_GROUPS_SERVER_AUTO_BIND_ENABLE
91
92// Over the Air Bootloading Client Plugin Configs
93#define TR_OTA_UPGRADE_QUERY_DELAY_MIN 60
94
95#endif /* TR_PLUGIN_CONFIG_H */