Commit aab93033 authored by 黄振令's avatar 黄振令

【修改内容】1. 添加获取当前时间秒数;2.网关有数据,更新网关时间

【提交人】huang.zhenling
parent 87d2de68
This diff is collapsed.
This diff is collapsed.
...@@ -180,7 +180,7 @@ void kk_platMsg_handle(void* data, char* chalMark){ ...@@ -180,7 +180,7 @@ void kk_platMsg_handle(void* data, char* chalMark){
info = cJSON_GetObjectItem(json, "info"); info = cJSON_GetObjectItem(json, "info");
payload = cJSON_GetObjectItem(json, "payload"); payload = cJSON_GetObjectItem(json, "payload");
if (info == NULL || payload == NULL){ if (info == NULL || payload == NULL){
ERROR_PRINT("info or payload params is error\n"); ERROR_PRINT("info or payload params error\n");
goto error; goto error;
} }
...@@ -194,6 +194,10 @@ void kk_platMsg_handle(void* data, char* chalMark){ ...@@ -194,6 +194,10 @@ void kk_platMsg_handle(void* data, char* chalMark){
goto error; goto error;
} }
if (chalMark != NULL){
dm_mgr_update_timestamp_by_devicecode(chalMark,HAL_UptimeMs());
}
dm_mgr_update_timestamp_by_devicecode(info_dcode->valuestring,HAL_UptimeMs()); dm_mgr_update_timestamp_by_devicecode(info_dcode->valuestring,HAL_UptimeMs());
if (strcmp(msgType->valuestring, "/thing/topo/add")==0){ if (strcmp(msgType->valuestring, "/thing/topo/add")==0){
......
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