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 "lock> "
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_IDENTIFY_CLIENT_CLI_ENABLE
27#define TR_GROUPS_CLIENT_CLI_ENABLE
28#define CUSTOM_CLI_COMMANDS_ENABLE
29#define CUSTOM_CLI_TOPLEVEL "lock"
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_DOOR_LOCK_SERVER_PLUGIN_ENABLE
55#define TR_IDENTIFY_CLIENT_PLUGIN_ENABLE
56#define TR_IDENTIFY_SERVER_PLUGIN_ENABLE
57#define TR_POLL_CONTROL_SERVER_PLUGIN_ENABLE
58#define TR_REMOTE_CLI_SERVER_PLUGIN_ENABLE
59
60// Plugin Print Configs
61#define TR_NETWORK_REJOIN_PLUGIN_PRINT_ENABLE 1
62#define TR_BASIC_SERVER_PLUGIN_PRINT_ENABLE 1
63#define TR_DOOR_LOCK_SERVER_PLUGIN_PRINT_ENABLE 1
64#define TR_IDENTIFY_CLIENT_PLUGIN_PRINT_ENABLE 1
65#define TR_IDENTIFY_SERVER_PLUGIN_PRINT_ENABLE 1
66#define TR_POLL_CONTROL_SERVER_PLUGIN_PRINT_ENABLE 1
67#define TR_REMOTE_CLI_SERVER_PLUGIN_PRINT_ENABLE 1
68
69// Channel Mask Configs
70#define TR_PRIMARY_CHANNEL_MASK 0x02108800
71#define TR_SECONDARY_CHANNEL_MASK 0x05EF7000
72
73// End-Device Keepalive Configs
74#define TR_ED_AGING_TIMEOUT ED_AGING_TIMEOUT_64MIN
75#define TR_KEEPALIVE_INTERVAL_MS 300000
76#define TR_KEEPALIVE_METHOD BOTH_KEEPALIVE_METHODS
77
78// Network Rejoin Plugin Configs
79#define TR_NWK_REJOIN_DELAY_MULTIPLIER 2
80#define TR_NWK_REJOIN_INITIAL_DELAY_SEC 1
81#define TR_NWK_REJOIN_MAX_DELAY_SEC 900
82
83// Door Lock Server Plugin Configs
84#define TR_DOOR_LOCK_SERVER_MAX_PIN_LEN 4
85#define TR_DOOR_LOCK_SERVER_MAX_NUM_USERS 8
86
87// Sleep Plugin Configs
88#define TR_IS_SLEEPY_ZED
89#define TR_STAY_AWAKE_WHEN_NOT_JOINED
90
91#endif /* TR_PLUGIN_CONFIG_H */