Consistent name for MeterValues related CS template tunable.
authorJérôme Benoit <jerome.benoit@sap.com>
Sun, 20 Jun 2021 11:56:40 +0000 (13:56 +0200)
committerJérôme Benoit <jerome.benoit@sap.com>
Sun, 20 Jun 2021 11:56:40 +0000 (13:56 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
README.md
src/charging-station/ChargingStation.ts
src/charging-station/ocpp/1.6/OCPP16RequestService.ts
src/types/ChargingStationTemplate.ts

index a4a39038791167ee24d76008d0d04f738d3e1a68..6748a91a08b68e6d6b2d00a44aee11e3aacb5d46 100644 (file)
--- a/README.md
+++ b/README.md
@@ -72,7 +72,7 @@ outOfOrderEndMeterValues | true/false | false | boolean | send Transaction.End M
 meteringPerTransaction | true/false | true | boolean | disable metering on a per transaction basis
 transactionDataMeterValues | true/false | false | boolean | enable transaction data MeterValues at stop transaction
 mainVoltageMeterValues | true/false | true | boolean | include charging station main voltage MeterValues on three phased charging stations
-phaseLineToLineVoltage | true/false | true | boolean | include charging station line to line voltage MeterValues on three phased charging stations
+phaseLineToLineVoltageMeterValues | true/false | true | boolean | include charging station line to line voltage MeterValues on three phased charging stations
 Configuration | | | ChargingStationConfiguration | charging stations OCPP configuration parameters
 AutomaticTransactionGenerator | | | AutomaticTransactionGenerator | charging stations ATG configuration
 Connectors | | | Connectors | charging stations connectors configuration
index 8be54a7805191c7c41c4bb23f4017d02b43bad6e..0f2034fa30f5c2ff5d774a8f289a80edbdccfbc8 100644 (file)
@@ -169,8 +169,8 @@ export default class ChargingStation {
     return this.stationInfo.mainVoltageMeterValues ?? true;
   }
 
-  public getPhaseLineToLineVoltage(): boolean {
-    return this.stationInfo.phaseLineToLineVoltage ?? false;
+  public getPhaseLineToLineVoltageMeterValues(): boolean {
+    return this.stationInfo.phaseLineToLineVoltageMeterValues ?? false;
   }
 
   public getEnergyActiveImportRegisterByTransactionId(transactionId: number): number | undefined {
index 628c1203ce4152d2b12968bd460c8e2bed871aec..f009a4abb7bac0765a374fe192083bfd157da9bf 100644 (file)
@@ -151,7 +151,7 @@ export default class OCPP16RequestService extends OCPPRequestService {
           }
           meterValue.sampledValue.push(OCPP16ServiceUtils.buildSampledValue(voltagePhaseLineToNeutralSampledValueTemplate ?? voltageSampledValueTemplate,
             voltagePhaseLineToNeutralMeasurandValue ?? voltageMeasurandValue, null, phaseLineToNeutralValue as OCPP16MeterValuePhase));
-          if (self.chargingStation.getPhaseLineToLineVoltage()) {
+          if (self.chargingStation.getPhaseLineToLineVoltageMeterValues()) {
             const phaseLineToLineValue = `L${phase}-L${(phase + 1) % self.chargingStation.getNumberOfPhases() !== 0 ? (phase + 1) % self.chargingStation.getNumberOfPhases() : self.chargingStation.getNumberOfPhases()}`;
             const voltagePhaseLineToLineSampledValueTemplate = self.chargingStation.getSampledValueTemplate(connectorId, OCPP16MeterValueMeasurand.VOLTAGE, phaseLineToLineValue as OCPP16MeterValuePhase);
             let voltagePhaseLineToLineMeasurandValue: number;
index 0c90c62235da8362bd52f91da42ee00e5fac00a5..5fff748bdbdad42c4718ac6d75e672e83b436a49 100644 (file)
@@ -63,7 +63,7 @@ export default interface ChargingStationTemplate {
   meteringPerTransaction?: boolean;
   transactionDataMeterValues?: boolean;
   mainVoltageMeterValues?: boolean;
-  phaseLineToLineVoltage?: boolean;
+  phaseLineToLineVoltageMeterValues?: boolean;
   Configuration?: ChargingStationConfiguration;
   AutomaticTransactionGenerator: AutomaticTransactionGenerator;
   Connectors: Connectors;