]> Piment Noir Git Repositories - e-mobility-charging-stations-simulator.git/commit
fix(ocpp): check connector availability in RemoteStartTransaction auto-selection...
authorRishabh Vaish <rishabhvaish.904@gmail.com>
Sun, 5 Apr 2026 15:08:24 +0000 (08:08 -0700)
committerGitHub <noreply@github.com>
Sun, 5 Apr 2026 15:08:24 +0000 (17:08 +0200)
commit2249b13016a22022a2e0b0838d7ba01fa53ecf7c
treed26dcff6d57913c1fc31d03d766dc028d1cc196d
parent163e341a7fc456922032b6a6be16b34a2b28bf03
fix(ocpp): check connector availability in RemoteStartTransaction auto-selection (#1774)

* fix(ocpp): check connector availability in RemoteStartTransaction auto-selection

The OCPP 1.6 RemoteStartTransaction handler's connector auto-selection
(when connectorId is omitted) only checked transactionStarted and
reservation status but not administrative availability. This meant an
Inoperative connector could be selected, causing the request to be
rejected even when other Operative connectors were free.

Added isConnectorAvailable() check to the auto-selection loop, matching
the behavior already present in the OCPP 2.0 selectAvailableEvse().

* [autofix.ci] apply automated fixes

* Update tests/charging-station/ocpp/1.6/OCPP16IncomingRequestService-RemoteStartTransaction.test.ts

* Apply suggestion from @jerome-benoit

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
src/charging-station/ocpp/1.6/OCPP16IncomingRequestService.ts
tests/charging-station/ocpp/1.6/OCPP16IncomingRequestService-RemoteStartTransaction.test.ts