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

Sync with upstream #2

Closed
wants to merge 17 commits into from
Closed

Sync with upstream #2

wants to merge 17 commits into from

Conversation

gq0
Copy link

@gq0 gq0 commented Mar 21, 2022

No description provided.

michaelbeaumont and others added 17 commits August 29, 2021 11:19
Some charging points send -1 there if the value is unknown. Definitely
unexpected, but I actually can't find anything in the spec that
excplicitly says that the value has to be positive (although it's
reasonable to expect it from a meter reading). In any case, the spec
explicitly says that the CS shouldn't reject a StopTransaction even if
sanity checks fail, and this validation prevents the ocpp-go user from
deciding for themselves.
This fixes sending messages to the client by newClientHandler function.
Signed-off-by: Lorenzo Donini <lorenzo.donini90@gmail.com>
- improve tests
- improve stopped channel

Signed-off-by: Lorenzo Donini <lorenzo.donini90@gmail.com>
- invoke respective setters for cancellation callbacks in ocpp 1.6 and 2.0.1

Signed-off-by: Lorenzo Donini <lorenzo.donini90@gmail.com>
Signed-off-by: Lorenzo <lorenzo.donini90@gmail.com>
Signed-off-by: Lorenzo <lorenzo.donini90@gmail.com>
- updates 1.6 examples with verbose logs

Signed-off-by: Lorenzo <lorenzo.donini90@gmail.com>
Signed-off-by: Lorenzo <lorenzo.donini90@gmail.com>
Signed-off-by: Lorenzo <lorenzo.donini90@gmail.com>
Signed-off-by: Lorenzo <lorenzo.donini90@gmail.com>
Signed-off-by: Lorenzo <lorenzo.donini90@gmail.com>
Copy link

@dammarco dammarco left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

left some comments

Comment on lines -43 to +44
MeterStop int `json:"meterStop" validate:"gte=0"`
MeterStop int `json:"meterStop"`

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

weird... we already had this change? 🤔

Comment on lines -11 to +12
V2Subprotocol = "ocpp2.0.1"
V201Subprotocol = "ocpp2.0.1.1"
V2Subprotocol = "ocpp2.0"
V201Subprotocol = "ocpp2.0.1"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is very important for us 👍

server.AddSupportedSubprotocol(types.V2Subprotocol)
server.AddSupportedSubprotocol(types.V201Subprotocol)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is very important for us 👍

@gq0
Copy link
Author

gq0 commented Mar 25, 2022

#3

@gq0 gq0 closed this Mar 25, 2022
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.

6 participants