-
Notifications
You must be signed in to change notification settings - Fork 0
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
Conversation
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>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
left some comments
MeterStop int `json:"meterStop" validate:"gte=0"` | ||
MeterStop int `json:"meterStop"` |
There was a problem hiding this comment.
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? 🤔
V2Subprotocol = "ocpp2.0.1" | ||
V201Subprotocol = "ocpp2.0.1.1" | ||
V2Subprotocol = "ocpp2.0" | ||
V201Subprotocol = "ocpp2.0.1" |
There was a problem hiding this comment.
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) |
There was a problem hiding this comment.
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 👍
No description provided.