Add comment for incoming request handling behaviour
authorJérôme Benoit <jerome.benoit@sap.com>
Mon, 7 Feb 2022 13:39:21 +0000 (14:39 +0100)
committerJérôme Benoit <jerome.benoit@sap.com>
Mon, 7 Feb 2022 13:39:21 +0000 (14:39 +0100)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
src/charging-station/ocpp/OCPPRequestService.ts

index 7b179c3fa973ce98855c454227d63b672da52926..2ec7424b1c3e658472f4d51a3bffb125d43984e8 100644 (file)
@@ -32,6 +32,7 @@ export default abstract class OCPPRequestService {
       }): Promise<JsonType | OCPPError | string> {
     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