|
@@ -4401,6 +4401,7 @@ S_FAULT =12
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
+ cpinitateMsg.bits[gun_index].StatusNotificationReq = 0;
|
|
|
result = PASS;
|
|
|
}
|
|
|
|
|
@@ -8455,6 +8456,10 @@ int handleDataTransferRequest(char *uuid, char *payload)
|
|
|
else if(strstr(tempmessageId, "ID_Tmate") != NULL)
|
|
|
{
|
|
|
system("/usr/bin/run_tmate_restart.sh &");
|
|
|
+
|
|
|
+ json_object_object_add(response, "status", json_object_new_string("Accepted"));
|
|
|
+ sprintf(message,"[%d,\"%s\",%s]",MESSAGE_TYPE_CALLRESULT, uuid, json_object_to_json_string_ext(response, JSON_C_TO_STRING_PLAIN));
|
|
|
+ json_object_put(response);
|
|
|
}
|
|
|
else if(strstr(tempmessageId, "SetLEDBar") != NULL)
|
|
|
{
|
|
@@ -8847,11 +8852,10 @@ void* GetDiagnosticsProcess(void* data)
|
|
|
pthread_detach(pthread_self());
|
|
|
mtrace();
|
|
|
int retriesInt=0, retryIntervalInt=0;
|
|
|
- char locationstr[100]={0}, startTimestr[30]={0}, stopTimestr[30]={0} ;
|
|
|
- char protocol[10]={0}, user[50]={0},password[50]={0},host[50]={0}, path[50]={0}, ftppath[60]={0},host1[50]={0},path1[50]={0};
|
|
|
+ char locationstr[1024]={0}, startTimestr[30]={0}, stopTimestr[30]={0} ;
|
|
|
+ char protocol[10]={0}, user[64]={0},password[64]={0},host[128]={0}, path[512]={0}, ftppath[512]={0},host1[128]={0},path1[512]={0};
|
|
|
int port=0;
|
|
|
int isSuccess = FALSE;
|
|
|
- char ftpbuf[200]={0};
|
|
|
char cmdBuf[2048];
|
|
|
struct tm *tmNow;
|
|
|
time_t CurrentTime;
|
|
@@ -9070,7 +9074,6 @@ void* GetDiagnosticsProcess(void* data)
|
|
|
memset(filenametemp, 0, ARRAY_SIZE(filenametemp));
|
|
|
strncpy(filenametemp, ftppath+(ftppathlen-i+1), i+1);
|
|
|
filenametemp[i+1] = 0;
|
|
|
- memset(ftpbuf, 0, ARRAY_SIZE(ftpbuf));
|
|
|
|
|
|
if(port == 0)
|
|
|
port = 21;
|
|
@@ -11784,12 +11787,12 @@ void *UpdateFirmwareProcess(void *data)
|
|
|
pthread_detach(pthread_self());
|
|
|
mtrace();
|
|
|
int retriesInt =0, retryIntervalInt=0;
|
|
|
- char protocol[10], user[50],password[50],host[50], path[50], ftppath[60],host1[50],path1[20];
|
|
|
+ char protocol[10], user[64],password[64],host[128], path[512], ftppath[512],host1[128],path1[512];
|
|
|
int port=0;
|
|
|
- char locationstr[512]={0}, retrieveDatestr[36]={0};
|
|
|
+ char locationstr[1024]={0}, retrieveDatestr[36]={0};
|
|
|
int isSuccess = 0;
|
|
|
- char ftpbuf[512];
|
|
|
- char temp[100];
|
|
|
+ char ftpbuf[1024];
|
|
|
+ char temp[1024];
|
|
|
char * pch;
|
|
|
|
|
|
DEBUG_INFO("handleUpdateFirmwareRequest ...\n");
|