From: Jérôme Benoit Date: Fri, 10 Nov 2023 18:23:47 +0000 (+0100) Subject: feat: add template tunable to stop transaction at CS stop X-Git-Tag: v1.2.24~21 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=ab11404a829ad48ba10c88bd701f47b1c96f9c41;p=e-mobility-charging-stations-simulator.git feat: add template tunable to stop transaction at CS stop Signed-off-by: Jérôme Benoit --- diff --git a/README.md b/README.md index e6c1d9de..5c800ed2 100644 --- a/README.md +++ b/README.md @@ -171,6 +171,7 @@ But the modifications to test have to be done to the files in the build target d | outOfOrderEndMeterValues | true/false | false | boolean | send Transaction.End MeterValues out of order. Need to relax OCPP specifications strict compliance ('ocppStrictCompliance' parameter) | | meteringPerTransaction | true/false | true | boolean | enable metering history on a per transaction basis | | transactionDataMeterValues | true/false | false | boolean | enable transaction data MeterValues at stop transaction | +| stopTransactionsOnStopped | true/false | true | boolean | enable stop transactions on charging station stop | | mainVoltageMeterValues | true/false | true | boolean | include charging stations main voltage MeterValues on three phased charging stations | | phaseLineToLineVoltageMeterValues | true/false | false | boolean | include charging stations line to line voltage MeterValues on three phased charging stations | | customValueLimitationMeterValues | true/false | true | boolean | enable limitation on custom fluctuated value in MeterValues | diff --git a/src/charging-station/ChargingStation.ts b/src/charging-station/ChargingStation.ts index e7b71b05..033152d6 100644 --- a/src/charging-station/ChargingStation.ts +++ b/src/charging-station/ChargingStation.ts @@ -2183,7 +2183,7 @@ export class ChargingStation extends EventEmitter { private async stopMessageSequence( reason?: StopTransactionReason, - stopTransactions = true, + stopTransactions = this.stationInfo?.stopTransactionsOnStopped ?? true, ): Promise { // Stop WebSocket ping this.stopWebSocketPing(); diff --git a/src/types/ChargingStationTemplate.ts b/src/types/ChargingStationTemplate.ts index 68c20597..5fd77851 100644 --- a/src/types/ChargingStationTemplate.ts +++ b/src/types/ChargingStationTemplate.ts @@ -119,6 +119,7 @@ export interface ChargingStationTemplate { outOfOrderEndMeterValues?: boolean; meteringPerTransaction?: boolean; transactionDataMeterValues?: boolean; + stopTransactionsOnStopped?: boolean; mainVoltageMeterValues?: boolean; phaseLineToLineVoltageMeterValues?: boolean; customValueLimitationMeterValues?: boolean;