From f335c1d582bab3b323e5de3e3a50889ab7871b8c Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Mon, 9 Jan 2023 00:14:16 +0100 Subject: [PATCH] Add stop transaction reason at firmware update MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- src/charging-station/ocpp/1.6/OCPP16IncomingRequestService.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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( -- 2.34.1