fix: fix start transaction response handling with authorize
authorJérôme Benoit <jerome.benoit@piment-noir.org>
Sat, 8 Jun 2024 14:39:02 +0000 (16:39 +0200)
committerJérôme Benoit <jerome.benoit@piment-noir.org>
Sat, 8 Jun 2024 14:39:02 +0000 (16:39 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
src/charging-station/ocpp/1.6/OCPP16ResponseService.ts

index aec5d65f31ba851e199aa865b8b759694b81faea..df8374214f8e8865fea5453e9ae4075ea5ee2ece 100644 (file)
@@ -650,6 +650,7 @@ export class OCPP16ResponseService extends OCPPResponseService {
     }
     if (
       connectorStatus?.idTagAuthorized === true &&
+      connectorStatus.authorizeIdTag != null &&
       connectorStatus.authorizeIdTag !== requestPayload.idTag
     ) {
       logger.error(
@@ -664,6 +665,7 @@ export class OCPP16ResponseService extends OCPPResponseService {
     }
     if (
       connectorStatus?.idTagLocalAuthorized === true &&
+      connectorStatus.localAuthorizeIdTag != null &&
       connectorStatus.localAuthorizeIdTag !== requestPayload.idTag
     ) {
       logger.error(