Fix connector Id validation in TriggerMessage handling
authorJérôme Benoit <jerome.benoit@sap.com>
Sat, 5 Nov 2022 21:46:20 +0000 (22:46 +0100)
committerJérôme Benoit <jerome.benoit@sap.com>
Sat, 5 Nov 2022 21:46:20 +0000 (22:46 +0100)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
src/charging-station/ocpp/1.6/OCPP16IncomingRequestService.ts

index 0af87023faf37e425e6f975e80d9e7eab29e5c6f..dd1018a07d0bd49b3bae29547af8fc7aae12f0b6 100644 (file)
@@ -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