Commit 508cd389 authored by 黄振令's avatar 黄振令

【修改内容】1. 配网时获取mode id,连续发送命令延时到3s;2.获取随机数修改为/dev/urandom

parent cd257287
......@@ -177,7 +177,7 @@ void kk_device_joined(EmberNodeId node)
UTIL_LOG_INFO("\n********************kk device joined********************\n");
if(emberAfDeviceTableGetEui64FromNodeId(node,mac)==false){
if(emberAfDeviceTableGetEui64FromNodeId(node,mac)){
deviceTableIndex = emberAfDeviceTableGetIndexFromNodeId(node);
if(deviceTableIndex!=0xffff){
devPtr = emberAfDeviceTablePointer();
......
......@@ -201,7 +201,7 @@ void emberAfMainTickCallback(void)
static unsigned int last_time;
unsigned int time = halCommonGetInt32uMillisecondTick();
if((time-last_time)>=500){
if((time - last_time)>=3000){
last_time = time;
kk_productCode_tick();
//printf("kk_productCode_tick!\n");
......
......@@ -25,7 +25,7 @@
// Our strategy is print out the source for the randomness and hope security
// conscious users will verify this on their own systems.
static const char randomDevice[] = "/dev/random";
static const char randomDevice[] = "/dev/urandom";//"/dev/random";
//==============================================================================
// Funtions
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment