在Zglobals.c和Zglobals.h中设置:
uint8 zgSecurityMode = ZG_SECURITY_MODE;
#define ZG_SECURITY_NONE 0
#define ZG_SECURITY_RESIDENTIAL 1
#define ZG_SECURITY_PRO_STANDARD 1 // For now, same as residential
#define ZG_SECURITY_PRO_HIGH 3
#define ZG_SECURITY_SE_STANDARD 4
#if ( SECURE == 0 )
#undef ZG_SECURITY_MODE
#define ZG_SECURITY_MODE ZG_SECURITY_NONE
#else
#if !defined ( ZG_SECURITY_MODE )
#if defined ( TC_LINKKEY_JOIN )
#define ZG_SECURITY_MODE ZG_SECURITY_SE_STANDARD
#else
#if !defined ( ZIGBEEPRO )
#define ZG_SECURITY_MODE ZG_SECURITY_RESIDENTIAL
#else
// #define ZG_SECURITY_MODE ZG_SECURITY_PRO_HIGH
#define ZG_SECURITY_MODE ZG_SECURITY_PRO_STANDARD // Default for Pro Release is Standard (residential)
#endif
#endif
#endif
#endif