|
@@ -4012,7 +4012,7 @@ void CheckSystemValue(void)
|
|
|
sendStartTransactionRequest(gun_index);
|
|
|
refreshStartTimer(&clientTime.StartTransaction);
|
|
|
refreshStartTimer(&clientTime.MeterValues[gun_index]);
|
|
|
- storeTempStopTransaction(gun_index);
|
|
|
+ //storeTempStopTransaction(gun_index);
|
|
|
}
|
|
|
|
|
|
//==============================================
|
|
@@ -4566,7 +4566,7 @@ void CheckSystemValue(void)
|
|
|
if(atoi((const char *)ShmOCPP16DataPH->ConfigurationTable.CoreProfile[MeterValueSampleInterval].ItemData)>0)
|
|
|
sendMeterValuesRequest(gun_index, ReadingContext_Sample_Periodic);
|
|
|
|
|
|
- storeTempStopTransaction(gun_index);
|
|
|
+ //storeTempStopTransaction(gun_index);
|
|
|
}
|
|
|
|
|
|
refreshStartTimer(&clientTime.MeterValues[gun_index]);
|
|
@@ -18353,15 +18353,14 @@ int GetOcppServerURL()
|
|
|
char urlStr[512];
|
|
|
|
|
|
// OCPPPH only
|
|
|
- sprintf((char*)ShmOCPP16DataPH->OcppServerURL, "wss://ocpp.phihong.com.tw:2013/");
|
|
|
sprintf((char*)ShmOCPP16DataPH->ChargeBoxId, "%s%s", ShmSysConfigAndInfo->SysConfig.ModelName, ShmSysConfigAndInfo->SysConfig.SerialNumber);
|
|
|
- if((ShmOCPP16DataPH->OcppServerURL != NULL) && (strcmp((const char *)ShmOCPP16DataPH->OcppServerURL,"") != 0))
|
|
|
+ if((ShmSysConfigAndInfo->SysConfig.MaintainServerURL != NULL) && (strcmp((const char *)ShmSysConfigAndInfo->SysConfig.MaintainServerURL,"") != 0) )
|
|
|
{
|
|
|
/*sscanf((const char *)ShmOCPP16DataPH->OcppServerURL,
|
|
|
"%[^:]:%*2[/]%[^:]:%i/%[a-zA-Z0-9._/-]",
|
|
|
OcppProtocol, OcppHost, &OcppPort, OcppTempPath);*/
|
|
|
|
|
|
- memcpy(urlStr, ShmOCPP16DataPH->OcppServerURL, ARRAY_SIZE(ShmOCPP16DataPH->OcppServerURL));
|
|
|
+ memcpy(urlStr, ShmSysConfigAndInfo->SysConfig.MaintainServerURL, ARRAY_SIZE(ShmSysConfigAndInfo->SysConfig.MaintainServerURL));
|
|
|
if(yuarel_parse(&url, urlStr) != -1)
|
|
|
{
|
|
|
sprintf(OcppProtocol, "%s", url.scheme);
|
|
@@ -18424,12 +18423,12 @@ int GetOcppPort()
|
|
|
|
|
|
int GetOcppConnStatus(void)
|
|
|
{
|
|
|
- return ShmOCPP16DataPH->OcppConnStatus;
|
|
|
+ return ShmSysConfigAndInfo->SysInfo.MaintainServerConnStatus;
|
|
|
}
|
|
|
|
|
|
void SetOcppConnStatus(uint8_t status)
|
|
|
{
|
|
|
- ShmOCPP16DataPH->OcppConnStatus = status;
|
|
|
+ ShmSysConfigAndInfo->SysInfo.MaintainServerConnStatus = status;
|
|
|
}
|
|
|
|
|
|
int GetHeartBeatWithNOResponse(void)
|