|
@@ -38,11 +38,11 @@
|
|
|
#include "TransactionQueue.h"
|
|
|
|
|
|
|
|
|
-#define PASS 1
|
|
|
-#define FAIL -1
|
|
|
+#define PASS 1
|
|
|
+#define FAIL -1
|
|
|
|
|
|
-#define FALSE 0
|
|
|
-#define TRUE 1
|
|
|
+#define FALSE 0
|
|
|
+#define TRUE 1
|
|
|
|
|
|
|
|
|
#define ChargePointMaxProfile_JSON "/Storage/OCPP/ChargePointMaxProfile.json"
|
|
@@ -1386,9 +1386,9 @@ void CheckSystemValue(void)
|
|
|
statusModeChage[gun_index] = FALSE;
|
|
|
|
|
|
DEBUG_INFO("SystemInitial=%d !!!\n",SystemInitial);
|
|
|
- DEBUG_INFO("difftime(time((time_t*)NULL), clientTime.Heartbeat)=%d !!!\n",difftime(time((time_t*)NULL), clientTime.Heartbeat));
|
|
|
- DEBUG_INFO("HeartBeatWaitTime=%d !!!\n",HeartBeatWaitTime);
|
|
|
- DEBUG_INFO("ShmOCPP16Data->BootNotification.ResponseHeartbeatInterval=%d !!!\n",ShmOCPP16Data->BootNotification.ResponseHeartbeatInterval);
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
|
|
|
}
|
|
|
|
|
@@ -11518,7 +11518,7 @@ void handleBootNotificationResponse(char *payload, int gun_index)
|
|
|
ShmOCPP16Data->BootNotification.ResponseHeartbeatInterval = intervalInt;
|
|
|
strcpy((char *)ShmOCPP16Data->BootNotification.ResponseStatus, statusStr);
|
|
|
|
|
|
- if((strcmp(statusStr, RegistrationStatusStr[RegistrationStatus_Accepted]) == 0 )
|
|
|
+ if((strcmp(statusStr, RegistrationStatusStr[RegistrationStatus_Accepted]) == 0 )
|
|
|
(strcmp(status, RegistrationStatusStr[RegistrationStatus_Pending]) == 0) ||
|
|
|
(strcmp(status, RegistrationStatusStr[RegistrationStatus_Rejected]) == 0)*/)
|
|
|
{
|
|
@@ -18422,16 +18422,6 @@ void checkTempStopTransaction(int gun_index)
|
|
|
char guid[37]={0};
|
|
|
char tempdata[65]={0};
|
|
|
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
- if(ShmSysConfigAndInfo->SysInfo.InternetConn == 0)
|
|
|
- {
|
|
|
- DEBUG_INFO("\n offline now !!!\n");
|
|
|
- return;
|
|
|
- }
|
|
|
-
|
|
|
-
|
|
|
fptr1 = fopen("/Storage/OCPP/TempStopTransaction", "r");
|
|
|
if (!fptr1)
|
|
|
{
|
|
@@ -18447,7 +18437,7 @@ void checkTempStopTransaction(int gun_index)
|
|
|
{
|
|
|
|
|
|
while (fgets(str, 1200, fptr1) != NULL)
|
|
|
- {
|
|
|
+ {
|
|
|
str[strlen(str) - 1] = '\0';
|
|
|
|
|
|
if(str[0]=='\0')
|
|
@@ -18464,10 +18454,9 @@ void checkTempStopTransaction(int gun_index)
|
|
|
queue_operation(4, guid, str );
|
|
|
|
|
|
memset(str,0,sizeof str);
|
|
|
+ }
|
|
|
|
|
|
- }
|
|
|
-
|
|
|
- }
|
|
|
+ }
|
|
|
|
|
|
|
|
|
fclose(fptr1);
|