From: Jérôme Benoit Date: Sun, 29 Mar 2026 01:04:50 +0000 (+0200) Subject: fix: harmonize idToken type to ISO14443 between Authorize and TransactionEvent Started X-Git-Tag: ocpp-server@v4.0.2~1 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=65db82b9f94bf0ae240aa6548752ea50f95532c7;p=e-mobility-charging-stations-simulator.git fix: harmonize idToken type to ISO14443 between Authorize and TransactionEvent Started 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. --- diff --git a/src/charging-station/ocpp/OCPPServiceUtils.ts b/src/charging-station/ocpp/OCPPServiceUtils.ts index 68eb372c..e915b320 100644 --- a/src/charging-station/ocpp/OCPPServiceUtils.ts +++ b/src/charging-station/ocpp/OCPPServiceUtils.ts @@ -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 }), } )