Commit 40e267dd authored by chen.weican's avatar chen.weican

【修改内容】zigbee端通过clusterID和attributeID找到对应的Identity,并上报

【提交人】陈伟灿
parent e2e7b5d7
......@@ -68,10 +68,12 @@ int kk_rpc_report_LightStatus(EmberEUI64 mac,int status,uint16_t clusterId,uint1
uint16_t attributeId_tmp = 0;
int i = 0;
sub_dev_node_t *node = NULL;
char macString[RPC_EUI64_STRING_LENGTH];
rpc_eui64ToString(mac,macString);
root = rpc_cJSON_CreateObject();
res = kk_sub_tsl_get_device_by_mac(mac, &node);
res = kk_sub_tsl_get_device_by_mac(macString, &node);
if (res != SUCCESS_RETURN) {
printf("[%s][%d]\n",__FUNCTION__,__LINE__);
return -1;
......
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