From: Jérôme Benoit Date: Sat, 5 Nov 2022 21:46:20 +0000 (+0100) Subject: Fix connector Id validation in TriggerMessage handling X-Git-Tag: v1.1.87~7 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=4caa7e6792df07e1cdc6bfadd1f6cec6947fdd06;p=e-mobility-charging-stations-simulator.git Fix connector Id validation in TriggerMessage handling 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 0af87023..dd1018a0 100644 --- a/src/charging-station/ocpp/1.6/OCPP16IncomingRequestService.ts +++ b/src/charging-station/ocpp/1.6/OCPP16IncomingRequestService.ts @@ -1127,7 +1127,7 @@ export default class OCPP16IncomingRequestService extends OCPPIncomingRequestSer return Constants.OCPP_TRIGGER_MESSAGE_RESPONSE_NOT_IMPLEMENTED; } if ( - OCPP16ServiceUtils.isConnectorIdValid( + !OCPP16ServiceUtils.isConnectorIdValid( chargingStation, OCPP16IncomingRequestCommand.TRIGGER_MESSAGE, commandPayload.connectorId