return this.stationInfo.phaseLineToLineVoltageMeterValues ?? false;
}
- public getEnergyActiveImportRegisterByTransactionId(transactionId: number): number | undefined {
- const transactionConnectorStatus = this.getConnectorStatus(
- this.getConnectorIdByTransactionId(transactionId)
- );
- if (this.getMeteringPerTransaction()) {
- return transactionConnectorStatus.transactionEnergyActiveImportRegisterValue;
- }
- return transactionConnectorStatus.energyActiveImportRegisterValue;
- }
-
public getConnectorIdByTransactionId(transactionId: number): number | undefined {
for (const connectorId of this.connectors.keys()) {
if (
}
}
+ public getEnergyActiveImportRegisterByTransactionId(transactionId: number): number | undefined {
+ const transactionConnectorStatus = this.getConnectorStatus(
+ this.getConnectorIdByTransactionId(transactionId)
+ );
+ if (this.getMeteringPerTransaction()) {
+ return transactionConnectorStatus?.transactionEnergyActiveImportRegisterValue;
+ }
+ return transactionConnectorStatus?.energyActiveImportRegisterValue;
+ }
+
public getEnergyActiveImportRegisterByConnectorId(connectorId: number): number | undefined {
+ const connectorStatus = this.getConnectorStatus(connectorId);
if (this.getMeteringPerTransaction()) {
- return this.getConnectorStatus(connectorId).transactionEnergyActiveImportRegisterValue;
+ return connectorStatus?.transactionEnergyActiveImportRegisterValue;
}
- return this.getConnectorStatus(connectorId).energyActiveImportRegisterValue;
+ return connectorStatus?.energyActiveImportRegisterValue;
}
public getAuthorizeRemoteTxRequests(): boolean {