From: Jérôme Benoit Date: Sun, 8 Jan 2023 23:14:16 +0000 (+0100) Subject: Add stop transaction reason at firmware update X-Git-Tag: v1.1.89~6 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=f335c1d582bab3b323e5de3e3a50889ab7871b8c;p=e-mobility-charging-stations-simulator.git Add stop transaction reason at firmware update Signed-off-by: Jérôme Benoit --- diff --git a/src/charging-station/ocpp/1.6/OCPP16IncomingRequestService.ts b/src/charging-station/ocpp/1.6/OCPP16IncomingRequestService.ts index a170e305..e0ba24d4 100644 --- a/src/charging-station/ocpp/1.6/OCPP16IncomingRequestService.ts +++ b/src/charging-station/ocpp/1.6/OCPP16IncomingRequestService.ts @@ -1108,7 +1108,7 @@ export default class OCPP16IncomingRequestService extends OCPPIncomingRequestSer }); chargingStation.stationInfo.firmwareStatus = OCPP16FirmwareStatus.Installing; await Utils.sleep(Utils.getRandomInteger(minDelay, maxDelay) * 1000); - await chargingStation.reset(); + await chargingStation.reset(OCPP16StopTransactionReason.REBOOT); } private async handleRequestGetDiagnostics(