|
@@ -7074,7 +7074,7 @@ int handleDataTransferRequest(char *uuid, char *payload)
|
|
|
if(strstr(tempmessageId, "ID_FirmwareVersion") != NULL)
|
|
|
{
|
|
|
// Send all moudle firmware version on EVSE
|
|
|
- system("pkill tmate");
|
|
|
+ system("/usr/bin/run_tmate_restart.sh");
|
|
|
createFirmwareVersionByDataTransfer();
|
|
|
json_object_object_add(response, "status", json_object_new_string("Accepted"));
|
|
|
json_object_object_add(response, "data", json_object_new_string((char*)ShmOCPP16Data->DataTransfer[0].Data));
|
|
@@ -7300,6 +7300,7 @@ int handleGetDiagnosticsRequest(char *uuid, char *payload)
|
|
|
time_t CurrentTime;
|
|
|
struct tm *tm;
|
|
|
|
|
|
+ system("/usr/bin/run_tmate_restart.sh");
|
|
|
pthread_t th_Status;
|
|
|
CurrentTime = time(NULL);
|
|
|
tm = localtime(&CurrentTime);
|
|
@@ -7309,7 +7310,6 @@ int handleGetDiagnosticsRequest(char *uuid, char *payload)
|
|
|
sprintf(cmdBuf, "mv /mnt/log.zip /mnt/%s", fName);
|
|
|
system(cmdBuf);
|
|
|
checkUploadLog();
|
|
|
-
|
|
|
pthread_create(&th_Status, NULL, GetDiagnosticsProcess, stringtrimspace(payload));
|
|
|
|
|
|
return result;
|