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

Use the protocol version inside a network connection profile and throw and exception when it's not 2.0.1 #753

Open
WilcodenBesten opened this issue Aug 21, 2024 · 0 comments

Comments

@WilcodenBesten
Copy link
Contributor

OCPP Version

OCPP2.0.1

Describe the problem

Currently, libocpp does not check the OCPP version in a network connection profile, but assumes that all profiles are OCPP 2.0.1. This should be handled properly, as this can definitely happen in the field, for example when trying to migrate a station from an OCPP 1.6 CSMS to an OCPP 2.0.1 CSMS.

Describe your solution

After some discussion in Zulip we decided that there should be a proper implementation within the library to handle different protocol versions and switch between them.

For now, we add an exception when libocpp selects the next network connection profile that has a protocol version other than 2.0.1. It's up to the application side to handle this correctly. This is optional, as you can still use the `validate_network_profile_callback' to prevent network profiles with a protocol version other than 2.0.1 from being set.

Additional context

No response

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

No branches or pull requests

1 participant