worksync_data.isBind = isBind->valueint;
printf("isBind: %d\n", worksync_data.isBind);
printf("check_in,report success\n");
-
}
if (requestKey && deviceId) // 设备注册
goto FAILED;
}
}
- printf("imei:%s",imei);
+ printf("imei:%s", imei);
temp_len += snprintf(json_data + temp_len, 512 - temp_len,
"{\"appId\":\"%s\",", APP_ID);
temp_len += snprintf(json_data + temp_len, 512 - temp_len,
if (steps == NULL)
steps = "0";
#if defined(SUPPORT_GNSS)
- if (geo_data == NULL)
- geo_data = "0,0";
+ if (geo_data[0] == '\0')
+ {
+ strcpy(geo_data, "0,0");
+ }
#endif
temp_len += snprintf(json_data + temp_len, 512 - temp_len,