lorenzodonini / ocpp-go

Open Charge Point Protocol implementation in Go
MIT License
277 stars 126 forks source link

Update remote_start_transaction.go #261

Open Phong-tc opened 8 months ago

lorenzodonini commented 8 months ago

Please provide a description when submitting a PR.

According to the specs the cardinality of connectorId is 0..1, meaning the value can be omitted from the payload.

Quote from the specs:

The RemoteStartTransaction.req MAY contain a connector id if the transaction is to be started on a specific connector. When no connector id is provided, the Charge Point is in control of the connector selection. A Charge Point MAY reject a RemoteStartTransaction.req without a connector id.