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

Add FormationError and OccurrenceConstraintViolationError #490

Merged

Conversation

Jared-Newell-Mobility
Copy link
Contributor

@Jared-Newell-Mobility Jared-Newell-Mobility commented Oct 18, 2023

In OCPP 1.6, two errors were misspelled. "FormationViolation" Error should be "FormatViolation" Error, "OccurenceConstraintViolation" Error should be "OccurrenceConstraintViolation" Error.

The OCA decided not to correct the spelling in OCPP 1.6, since that would be a breaking change. FormationViolation has been fixed as of OCPP 2.0.1. OccurenceConstraintViolation Error is used for 1.6 and 2.0.1. "OccurrenceConstraintViolation" Error is used for OCPP 2.1 and up.

This library doesn't support "FormationViolation" Error (for OCPP 1.6 and up)

This commit adds support for those errors.

See the discussion at #381 and OCPP 1.6-J Errata sheet v1.0, section 5 "Known issues that won't be fixed".

@OrangeTux
Copy link
Collaborator

LGTM.

I've updated the title and description of this ticket to be bit more descriptive. These elements will end up
in the git history.

OrangeTux
OrangeTux previously approved these changes Oct 19, 2023
@OrangeTux OrangeTux changed the title FormatViolation serialization bug with OCPP 1.6-J Add FormationError and OccurrenceConstraintViolationError Oct 19, 2023
@Jared-Newell-Mobility
Copy link
Contributor Author

@OrangeTux I've just corrected the comment, could you please confirm?

@Jared-Newell-Mobility Jared-Newell-Mobility merged commit 02a532d into master Oct 24, 2023
6 checks passed
@Jared-Newell-Mobility Jared-Newell-Mobility deleted the FormatViolation-serialization-bug-with-OCPP-1.6-J branch October 24, 2023 13:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants