From: Jérôme Benoit Date: Mon, 7 Feb 2022 13:39:21 +0000 (+0100) Subject: Add comment for incoming request handling behaviour X-Git-Tag: v1.1.45~1 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=e80008ffa822a339587162458e0b039f5b7c19b8;p=e-mobility-charging-stations-simulator.git Add comment for incoming request handling behaviour Signed-off-by: Jérôme Benoit --- diff --git a/src/charging-station/ocpp/OCPPRequestService.ts b/src/charging-station/ocpp/OCPPRequestService.ts index 7b179c3f..2ec7424b 100644 --- a/src/charging-station/ocpp/OCPPRequestService.ts +++ b/src/charging-station/ocpp/OCPPRequestService.ts @@ -32,6 +32,7 @@ export default abstract class OCPPRequestService { }): Promise { if (this.chargingStation.isInRejectedState() || (this.chargingStation.isInPendingState() && !params.triggerMessage)) { throw new OCPPError(ErrorType.SECURITY_ERROR, 'Cannot send command payload if the charging station is not in accepted state', commandName); + // FIXME: Add template tunable for accepting incoming ChangeConfiguration request while in unknown state } else if ((this.chargingStation.isInUnknownState() && (commandName === RequestCommand.BOOT_NOTIFICATION || commandName === IncomingRequestCommand.CHANGE_CONFIGURATION)) || this.chargingStation.isInAcceptedState() || (this.chargingStation.isInPendingState() && params.triggerMessage)) { // eslint-disable-next-line @typescript-eslint/no-this-alias