|
@@ -3473,28 +3473,19 @@ void checkConnectionTimeout()
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
- if(strcmp((char *)ShmOCPP16Data->ConfigurationTable.CoreProfile[ConnectionTimeOut].ItemData,"") != 0)
|
|
|
- {
|
|
|
- ShmCharger->timeoutSpec.Setting_Timeout_Spec = atoi((char *)ShmOCPP16Data->ConfigurationTable.CoreProfile[ConnectionTimeOut].ItemData);
|
|
|
- if(ShmCharger->timeoutSpec.Setting_Timeout_Spec <= 0)
|
|
|
- {
|
|
|
- ShmCharger->timeoutSpec.Present_Timeout_Spec = TIMEOUT_SPEC_HANDSHAKING;
|
|
|
-
|
|
|
- }
|
|
|
- else
|
|
|
- {
|
|
|
- ShmCharger->timeoutSpec.Present_Timeout_Spec = (ShmCharger->timeoutSpec.Setting_Timeout_Spec*1000);
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
+ ShmCharger->timeoutSpec.Setting_Timeout_Spec = ocpp_get_connection_timeout();
|
|
|
+ if(ShmCharger->timeoutSpec.Setting_Timeout_Spec <= 0)
|
|
|
+ {
|
|
|
+ ShmCharger->timeoutSpec.Present_Timeout_Spec = TIMEOUT_SPEC_HANDSHAKING;
|
|
|
+
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ ShmCharger->timeoutSpec.Present_Timeout_Spec = (ShmCharger->timeoutSpec.Setting_Timeout_Spec*1000);
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
- }
|
|
|
- else
|
|
|
- {
|
|
|
- ShmCharger->timeoutSpec.Present_Timeout_Spec = TIMEOUT_SPEC_HANDSHAKING;
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
}
|
|
|
}
|
|
|
|