Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Connector Lock build switch #312

Merged
merged 3 commits into from
Jun 9, 2024
Merged

Connector Lock build switch #312

merged 3 commits into from
Jun 9, 2024

Conversation

matth-x
Copy link
Owner

@matth-x matth-x commented Jun 9, 2024

Add the build flag MO_ENABLE_CONNECTOR_LOCK which allows to configure a connector lock.

Two OCPP features depend on a lock: the message UnlockConnector and the configuration UnlockConnectorOnEVSideDisconnect. The new build flag has the following effect:

  • For chargers with a socket, set MO_ENABLE_CONNECTOR_LOCK=1: setOnUnlockConnectorInOut(...) remains as it is and UnlockConnectorOnEVSideDisconnect becomes read-write.
  • For chargers with fixed cable, the default MO_ENABLE_CONNECTOR_LOCK=0 applies: the function setOnUnlockConnectorInOut(...) in the API gets disabled and UnlockConnectorOnEVSideDisconnect remains read-only and is false.

@matth-x matth-x merged commit e1b4d22 into main Jun 9, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant