]> Piment Noir Git Repositories - e-mobility-charging-stations-simulator.git/commitdiff
fix: harmonize idToken type to ISO14443 between Authorize and TransactionEvent Started
authorJérôme Benoit <jerome.benoit@sap.com>
Sun, 29 Mar 2026 01:04:50 +0000 (03:04 +0200)
committerJérôme Benoit <jerome.benoit@sap.com>
Sun, 29 Mar 2026 01:04:50 +0000 (03:04 +0200)
The Authorize request already used ISO14443 for RFID tag identifiers,
but startTransactionOnConnector hardcoded Central (now Local after
previous commit). Align both to ISO14443 for consistency.

src/charging-station/ocpp/OCPPServiceUtils.ts

index 68eb372c21c8a7961c31878d8d26c1568a7fc733..e915b320194295aeba368ff6b3021231a4d371c8 100644 (file)
@@ -452,7 +452,7 @@ export const startTransactionOnConnector = async (
         transactionId,
         {
           idToken:
-            idTag != null ? { idToken: idTag, type: OCPP20IdTokenEnumType.Local } : undefined,
+            idTag != null ? { idToken: idTag, type: OCPP20IdTokenEnumType.ISO14443 } : undefined,
           ...(startedMeterValues.length > 0 && { meterValue: startedMeterValues }),
         }
       )