#include "cat1_server.h"
#include "linux/delay.h"
+//http://r-oss.thisiot.com/device-ota/2024_05_06/1787425705369333762.fwpkg?Expires=1714998097&OSSAccessKeyId=LTAI5tJa2arDBmqSUsSTQJ1T&Signature=eLmtuPN10YXS8pNUtJO2E2vt%2FPM%3D
//https://test.app.api.thisiot.com/ota/task?deviceId=deviceId&sourceVersion=sourceVersion
WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "");
report_jsonString = cJSON_PrintUnformatted(data);
- cJSON_Delete(data);
+ //cJSON_Delete(data);
if(data!=NULL)
{
if(downloadFileVo!=NULL)
{
- //"https://r-oss.thisiot.com/device-ota/2024_04_22/1782329689464958978.fwpkg?Expires=1713780167&OSSAccessKeyId=LTAI5tJa2arDBmqSUsSTQJ1T&Signature=OlbdNsfnz9Zje6ypFgXINQPXVE0%3D"
+ //"http://r-oss.thisiot.com/device-ota/2024_04_22/1782329689464958978.fwpkg?Expires=1713780167&OSSAccessKeyId=LTAI5tJa2arDBmqSUsSTQJ1T&Signature=OlbdNsfnz9Zje6ypFgXINQPXVE0%3D"
char *uri = cJSON_GetObjectItem(downloadFileVo, "url")->valuestring;
WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "uri %s",uri);
sprintf((char *)uri_ota_package,"%s",uri);
}
display_api->set_screen_set_keepon_timeout(-1);
memset(uri,0,256);
- imei_str= const_cast<char*>(ConfigModel::GetInstance()->Getimei().c_str());
+ imei_str= const_cast<char*>(ConfigModel::GetInstance()->Getimei().c_str());//"864430010001091";//const_cast<char*>(ConfigModel::GetInstance()->Getimei().c_str());
//https://test.app.api.thisiot.com/ota/task?deviceId=deviceId&sourceVersion=sourceVersion
// 860132060347507
// v1.1_20240419_152549