lorenzodonini / ocpp-go

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

Charge point disconnects after 1 minute #44

Closed paulhobbel closed 3 years ago

paulhobbel commented 3 years ago

Due to the way the pongWait is hardcoded in the ws server there is no way for me to increase the ping rate. The charge points we use ping every 2 minutes. I suggest to make this configurable, for now I've copied over the ws server and modified the code to accept pings every 2 minutes

lorenzodonini commented 3 years ago

You have a good point there. Working on making this easily configurable.

lorenzodonini commented 3 years ago

@paulhobbel I created a PR with support for websocket timeout configuration.

Feel free to check out https://github.com/lorenzodonini/ocpp-go/pull/46 and leave some feedback.

paulhobbel commented 3 years ago

This does exactly what I need it to do 👍