lorenzodonini / ocpp-go

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

Add option to attach disconnect/reconnect handlers to ocppj.Client #85

Closed michaelbeaumont closed 2 years ago

lorenzodonini commented 3 years ago

I'm conflicted about this: the whole idea of automatic reconnection, is to have a transparent mechanism, so the application doesn't even have to know about a disc/reconnection.

Would you use this for logging purposes and state management only, or are there are use cases?

michaelbeaumont commented 3 years ago

Ultimately the use case boils down to needing to know whether I can expect a timely response from the backend or not.

lorenzodonini commented 3 years ago

Approved. There's some conflicts with the other request I merged before.

michaelbeaumont commented 3 years ago

@lorenzodonini this can be merged

michaelbeaumont commented 2 years ago

Closing, included in https://github.com/lorenzodonini/ocpp-go/pull/117/