|
@@ -526,7 +526,7 @@ char *makeJson_selfCheck_(uint8_t sta) //sta==0 应答,sta==1结果
|
|
|
memset(device_status.qianming,0,sizeof(device_status.qianming));
|
|
memset(device_status.qianming,0,sizeof(device_status.qianming));
|
|
|
memset(device_status.photolink,0,sizeof(device_status.photolink));
|
|
memset(device_status.photolink,0,sizeof(device_status.photolink));
|
|
|
}
|
|
}
|
|
|
- cJSON_AddItemToObject(pRoot, "ts", cJSON_CreateNumber(tv.tv_sec));
|
|
|
|
|
|
|
+ cJSON_AddItemToObject(pRoot, "ts", cJSON_CreateNumber(tv.tv_sec-8*3600));
|
|
|
char * t = cJSON_PrintUnformatted(pRoot);
|
|
char * t = cJSON_PrintUnformatted(pRoot);
|
|
|
if(NULL == t)
|
|
if(NULL == t)
|
|
|
{
|
|
{
|
|
@@ -636,7 +636,7 @@ char *makeJson_C01_Warn(uint16_t code,double process)
|
|
|
LOG_E("cJSON pJsonRoot NULL!!!");
|
|
LOG_E("cJSON pJsonRoot NULL!!!");
|
|
|
return NULL;
|
|
return NULL;
|
|
|
}
|
|
}
|
|
|
- cJSON_AddStringToObject(pJsonRoot, "cmd", "warn");
|
|
|
|
|
|
|
+ cJSON_AddStringToObject(pJsonRoot, "cmd", "selfcheck");
|
|
|
cJSON * pubstring = NULL;
|
|
cJSON * pubstring = NULL;
|
|
|
pubstring = cJSON_CreateObject();
|
|
pubstring = cJSON_CreateObject();
|
|
|
if(NULL==pubstring)
|
|
if(NULL==pubstring)
|