lorenzodonini / ocpp-go

Open Charge Point Protocol implementation in Go
MIT License
261 stars 125 forks source link

Update remote_start_transaction.go #261

Open Phong-tc opened 6 months ago

lorenzodonini commented 6 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.