SuperOok / openhab-vallox

Openhab interface to a vallox central venting unit
Eclipse Public License 1.0
1 stars 1 forks source link

Add re-connect functionality #2

Closed SuperOok closed 7 years ago

SuperOok commented 7 years ago

If connection to serial gateway is lost, the socket gets disconnected and the connection never will be established again

==> /var/log/openhab2/openhab.log <==
2016-11-24 09:58:20.168 [ERROR] [g.vallox.service.ValloxSerialHandler] - Failed to handle command to Vallox serial interface: java.net.SocketException: Broken pipe (Write failed)

The request is to implement some automatic reconnection behaviour that automatically detects disconnection and tries to reconnect.

SuperOok commented 7 years ago

I added some reconnection behaviour and the Thing status should now correctly represent the ONLINE/OFFLINE state. Works fine for me.

majherek commented 7 years ago

Thanks very much. It's works like a charm!!!