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.
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 ofGetCompositeSchedule.conf
(https://github.com/lorenzodonini/ocpp-go/issues/276); I believe this fix is in keeping w/ OCPP 1.6:An excerpt re:
GetCompositeSchedule
: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.