|
@@ -2223,27 +2223,6 @@ int ProcessShareMemory()
|
|
|
}
|
|
|
|
|
|
|
|
|
-int isOFFline(void)
|
|
|
-{
|
|
|
- if(ShmSysConfigAndInfo->SysInfo.InternetConn == 0)
|
|
|
- {
|
|
|
- if(TempMeterValueInterval >= 2 )
|
|
|
- {
|
|
|
- TempMeterValueInterval = 0;
|
|
|
- return TRUE;
|
|
|
- }
|
|
|
- else
|
|
|
- {
|
|
|
- TempMeterValueInterval = TempMeterValueInterval+ 1;
|
|
|
- return FALSE;
|
|
|
- }
|
|
|
- }
|
|
|
- else
|
|
|
- {
|
|
|
- return FALSE;
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
|
|
|
|
|
|
|
|
@@ -2805,8 +2784,7 @@ void CheckSystemValue(void)
|
|
|
}
|
|
|
|
|
|
|
|
|
- if(
|
|
|
- (((time((time_t*)NULL) - clientTime.MeterValues[gun_index]) > (atoi((const char *)ShmOCPP16Data->ConfigurationTable.CoreProfile[MeterValueSampleInterval].ItemData)- 1))))
|
|
|
+ if((((time((time_t*)NULL) - clientTime.MeterValues[gun_index]) > (atoi((const char *)ShmOCPP16Data->ConfigurationTable.CoreProfile[MeterValueSampleInterval].ItemData)- 1))))
|
|
|
{
|
|
|
|
|
|
if(gunType[gun_index] == 'J')
|
|
@@ -6830,7 +6808,7 @@ int handleChangeConfigurationRequest(char *uuid, char *payload)
|
|
|
|
|
|
if((strcmp(keystr,"SecurityProfile")==0)&&(strcmp(comfirmstr,"Accepted")==0))
|
|
|
{
|
|
|
- ShmSysConfigAndInfo->SysInfo.InternetConn = 0;
|
|
|
+ SetOcppConnStatus(FALSE);
|
|
|
}
|
|
|
|
|
|
return result;
|