Skip to content
This repository has been archived by the owner on Jan 9, 2024. It is now read-only.

Commit

Permalink
Consistent name for MeterValues related CS template tunable.
Browse files Browse the repository at this point in the history
Signed-off-by: Jérôme Benoit <[email protected]>
  • Loading branch information
Jérôme Benoit committed Jun 20, 2021
1 parent a6d8a23 commit 6b10669
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions src/charging-station/ChargingStation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion src/charging-station/ocpp/1.6/OCPP16RequestService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion src/types/ChargingStationTemplate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export default interface ChargingStationTemplate {
meteringPerTransaction?: boolean;
transactionDataMeterValues?: boolean;
mainVoltageMeterValues?: boolean;
phaseLineToLineVoltage?: boolean;
phaseLineToLineVoltageMeterValues?: boolean;
Configuration?: ChargingStationConfiguration;
AutomaticTransactionGenerator: AutomaticTransactionGenerator;
Connectors: Connectors;
Expand Down

0 comments on commit 6b10669

Please sign in to comment.