lorenzodonini / ocpp-go

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

Add SubProtocol setter method #147

Closed lorenzodonini closed 2 years ago

lorenzodonini commented 2 years ago

Adds a SetRequestedSubProtocol method to the client websocket interface.

The method needs to be invoked in order to negotiate a specific sub-protocol with the server.

When creating a chargePoint/chargingStation, this method is invoked automatically. For custom setups of the websocket client, the method needs to be invoked manually.

Closes #141