Commit 149ec289 authored by 陈伟灿's avatar 陈伟灿

Merge branch 'hzl' into 'master'

【修改内容】1. 去掉重复定义

See merge request chenweican/k-sdk!16
parents 3de8f63f 508cd389
...@@ -177,7 +177,7 @@ void kk_device_joined(EmberNodeId node) ...@@ -177,7 +177,7 @@ void kk_device_joined(EmberNodeId node)
UTIL_LOG_INFO("\n********************kk device joined********************\n"); UTIL_LOG_INFO("\n********************kk device joined********************\n");
if(emberAfDeviceTableGetEui64FromNodeId(node,mac)==false){ if(emberAfDeviceTableGetEui64FromNodeId(node,mac)){
deviceTableIndex = emberAfDeviceTableGetIndexFromNodeId(node); deviceTableIndex = emberAfDeviceTableGetIndexFromNodeId(node);
if(deviceTableIndex!=0xffff){ if(deviceTableIndex!=0xffff){
devPtr = emberAfDeviceTablePointer(); devPtr = emberAfDeviceTablePointer();
......
...@@ -201,7 +201,7 @@ void emberAfMainTickCallback(void) ...@@ -201,7 +201,7 @@ void emberAfMainTickCallback(void)
static unsigned int last_time; static unsigned int last_time;
unsigned int time = halCommonGetInt32uMillisecondTick(); unsigned int time = halCommonGetInt32uMillisecondTick();
if((time-last_time)>=500){ if((time - last_time)>=3000){
last_time = time; last_time = time;
kk_productCode_tick(); kk_productCode_tick();
//printf("kk_productCode_tick!\n"); //printf("kk_productCode_tick!\n");
......
...@@ -29,7 +29,6 @@ ...@@ -29,7 +29,6 @@
#define ZIGBEE_COO_PRODUCT_CODE "2" #define ZIGBEE_COO_PRODUCT_CODE "2"
#define TEST_PRODUCT_CODE "24" #define TEST_PRODUCT_CODE "24"
#define GW2CCU_PROTOCOL "tcp"
#define MSG_TOPO_CHANGE_TYPE_STR "changeType" #define MSG_TOPO_CHANGE_TYPE_STR "changeType"
#define MSG_TOPO_CHANGE_DEVICES_STR "devices" #define MSG_TOPO_CHANGE_DEVICES_STR "devices"
...@@ -41,13 +40,6 @@ int kk_zcl_onoff_set(jrpc_context * ctx,const char *mac,unsigned char ep,void* d ...@@ -41,13 +40,6 @@ int kk_zcl_onoff_set(jrpc_context * ctx,const char *mac,unsigned char ep,void* d
int kk_sendData2CCU(char* data, int len);
#define RPC_KK_TEST_FUNCTION_TABLE \ #define RPC_KK_TEST_FUNCTION_TABLE \
{(rpc_function*)kk_tsl_property_operation,"/thing/service/property/set"},\ {(rpc_function*)kk_tsl_property_operation,"/thing/service/property/set"},\
{(rpc_function*)kk_tsl_property_operation,KK_READ_ATTRIBUTE_METHOD},\ {(rpc_function*)kk_tsl_property_operation,KK_READ_ATTRIBUTE_METHOD},\
......
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
// Our strategy is print out the source for the randomness and hope security // Our strategy is print out the source for the randomness and hope security
// conscious users will verify this on their own systems. // conscious users will verify this on their own systems.
static const char randomDevice[] = "/dev/random"; static const char randomDevice[] = "/dev/urandom";//"/dev/random";
//============================================================================== //==============================================================================
// Funtions // 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