|
@@ -4097,7 +4097,7 @@ int sendStopTransactionRequest(int gun_index)
|
|
random_uuid(guid);
|
|
random_uuid(guid);
|
|
|
|
|
|
/***********************************transactionData******************************************************/
|
|
/***********************************transactionData******************************************************/
|
|
- memset(ShmOCPP16Data->StopTransaction[gun_index].TransactionData, 0, sizeof(sizeof(struct StructMeterValue)));
|
|
|
|
|
|
+ memset(ShmOCPP16Data->StopTransaction[gun_index].TransactionData, 0, sizeof(struct StructMeterValue));
|
|
strcpy((char *)ShmOCPP16Data->StopTransaction[gun_index].TransactionData[0].TimeStamp, buf);
|
|
strcpy((char *)ShmOCPP16Data->StopTransaction[gun_index].TransactionData[0].TimeStamp, buf);
|
|
|
|
|
|
//=================================
|
|
//=================================
|
|
@@ -12703,6 +12703,15 @@ void StoreConfigurationTable(void)
|
|
|
|
|
|
fprintf(outfile,"{\"key\":\"%s\",\"readonly\":%s,\"value\":\"%s\"}\n","CustomIdleFeeAfterStop", "false", (char *)ShmOCPP16Data->ConfigurationTable.CoreProfile[CustomIdleFeeAfterStop].ItemData);
|
|
fprintf(outfile,"{\"key\":\"%s\",\"readonly\":%s,\"value\":\"%s\"}\n","CustomIdleFeeAfterStop", "false", (char *)ShmOCPP16Data->ConfigurationTable.CoreProfile[CustomIdleFeeAfterStop].ItemData);
|
|
|
|
|
|
|
|
+ // ConfigurationVersion
|
|
|
|
+ /*
|
|
|
|
+ ShmOCPP16Data->ConfigurationTable.CoreProfile[ConfigurationVersion].ItemAccessibility = 1;
|
|
|
|
+ strcpy((char *)ShmOCPP16Data->ConfigurationTable.CoreProfile[ConfigurationVersion].ItemName, "ConfigurationVersion");
|
|
|
|
+ strcpy((char *)ShmOCPP16Data->ConfigurationTable.CoreProfile[ConfigurationVersion].ItemData, "1" );
|
|
|
|
+ */
|
|
|
|
+
|
|
|
|
+ fprintf(outfile,"{\"key\":\"%s\",\"readonly\":%s,\"value\":\"%s\"}\n","ConfigurationVersion", "false", (char *)ShmOCPP16Data->ConfigurationTable.CoreProfile[ConfigurationVersion].ItemData);
|
|
|
|
+
|
|
//* Local Auth List Management Profile*/
|
|
//* Local Auth List Management Profile*/
|
|
//LocalAuthListEnabled
|
|
//LocalAuthListEnabled
|
|
/*
|
|
/*
|
|
@@ -14359,13 +14368,13 @@ int setKeyValue(char *key, char *value)
|
|
if(ShmOCPP16Data->ConfigurationTable.CoreProfile[StopTxnSampledData].ItemAccessibility == 1)
|
|
if(ShmOCPP16Data->ConfigurationTable.CoreProfile[StopTxnSampledData].ItemAccessibility == 1)
|
|
{
|
|
{
|
|
sprintf((char *)ShmOCPP16Data->ConfigurationTable.CoreProfile[StopTxnSampledData].ItemData, "%s", value );
|
|
sprintf((char *)ShmOCPP16Data->ConfigurationTable.CoreProfile[StopTxnSampledData].ItemData, "%s", value );
|
|
|
|
+
|
|
isSuccess = ConfigurationStatus_Accepted;
|
|
isSuccess = ConfigurationStatus_Accepted;
|
|
}
|
|
}
|
|
else
|
|
else
|
|
{
|
|
{
|
|
isSuccess = ConfigurationStatus_Rejected;
|
|
isSuccess = ConfigurationStatus_Rejected;
|
|
}
|
|
}
|
|
-
|
|
|
|
}
|
|
}
|
|
|
|
|
|
if(strcmp(key, "StopTxnSampledDataMaxLength") == 0)
|
|
if(strcmp(key, "StopTxnSampledDataMaxLength") == 0)
|
|
@@ -15802,7 +15811,7 @@ void storeTempStopTransaction(int gun_index)
|
|
random_uuid(guid);
|
|
random_uuid(guid);
|
|
|
|
|
|
/***********************************transactionData******************************************************/
|
|
/***********************************transactionData******************************************************/
|
|
- memset(ShmOCPP16Data->StopTransaction[gun_index].TransactionData, 0, sizeof(sizeof(struct StructMeterValue)));
|
|
|
|
|
|
+ memset(ShmOCPP16Data->StopTransaction[gun_index].TransactionData, 0, sizeof(struct StructMeterValue));
|
|
strcpy((char *)ShmOCPP16Data->StopTransaction[gun_index].TransactionData[0].TimeStamp, buf);
|
|
strcpy((char *)ShmOCPP16Data->StopTransaction[gun_index].TransactionData[0].TimeStamp, buf);
|
|
|
|
|
|
//=================================
|
|
//=================================
|