我开启安全加密,再f8wConfig.cfg文件中
-DSECURE=1
-DZG_SECURE_DYNAMIC=0
再ZGlobals.c中设置zgPreConfigKeys=TRUE; //使用预定以的密钥
然后
CONST uint8 defaultKey[SEC_KEY_LEN] =
{
#if defined ( APP_TP ) || defined ( APP_TP2 )
// Key for ZigBee Conformance Testing
0xbb, 0xbb, 0xbb, 0xbb, 0xbb, 0xbb, 0xbb, 0xbb,
0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa
#else
// Key for In-House Testing
'H', 'Y', 'T', 'Y', 'T', 'Z', 'Q', 'X', //自定义密钥
'T', 'C', 'J', 'S', 'Y', 'X', 'G', 'S'
#endif
};
这样之后,进行数据的传输,为什么数据没有被加密,抓包看到的数据还是以前的数据?