Add stop transaction reason at firmware update
authorJérôme Benoit <jerome.benoit@sap.com>
Sun, 8 Jan 2023 23:14:16 +0000 (00:14 +0100)
committerJérôme Benoit <jerome.benoit@sap.com>
Sun, 8 Jan 2023 23:14:16 +0000 (00:14 +0100)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
src/charging-station/ocpp/1.6/OCPP16IncomingRequestService.ts

index a170e3058eea1d11966a3bf4683ce6a8fed14b96..e0ba24d4b467352ff680151590e9c9e012217082 100644 (file)
@@ -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(