From: Jérôme Benoit Date: Fri, 10 Feb 2023 23:40:16 +0000 (+0100) Subject: fix(simulator): lookup OCPP configuration key case insensitively X-Git-Tag: v1.1.94~3 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=acda9cab8724c9b51d1f5f9a8a12c6dd3617ff55;p=e-mobility-charging-stations-simulator.git fix(simulator): lookup OCPP configuration key case insensitively 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 3d5517dd..b1df54b7 100644 --- a/src/charging-station/ocpp/1.6/OCPP16IncomingRequestService.ts +++ b/src/charging-station/ocpp/1.6/OCPP16IncomingRequestService.ts @@ -443,7 +443,8 @@ export default class OCPP16IncomingRequestService extends OCPPIncomingRequestSer for (const key of commandPayload.key) { const keyFound = ChargingStationConfigurationUtils.getConfigurationKey( chargingStation, - key + key, + true ); if (keyFound) { if (Utils.isUndefined(keyFound.visible) === true) {