Skip to content

Fix validation for connectorId of GetCompositeSchedule.conf #275

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

Merged
merged 2 commits into from
Jul 2, 2024

Conversation

initialed85
Copy link
Contributor

@initialed85 initialed85 commented May 29, 2024

Hi,

This lib is awesome, we've built a production OCPP server around it and it's going great!

This PR fixes the validation of the connectorId field of GetCompositeSchedule.conf (#276); I believe this fix is in keeping w/ OCPP 1.6:

image

An excerpt re: GetCompositeSchedule:

If the ConnectorId in the request is set to '0', the Charge Point SHALL report the total expected power or current the Charge Point expects to consume from the grid during the requested time period.

While I was in the code I also ran go fmt and tidied up a couple of (probably unimportant) go vet failures around copied locks in test code.

@lorenzodonini
Copy link
Owner

Hey, sorry for the late review and thanks a lot for the contribution! Approved & merged

@lorenzodonini lorenzodonini merged commit 1836697 into lorenzodonini:master Jul 2, 2024
@initialed85
Copy link
Contributor Author

Hey, sorry for the late review and thanks a lot for the contribution! Approved & merged

Thx @lorenzodonini!

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.

2 participants