the1laz / cgateweb

MQTT interface for C-Bus written in Node.js
MIT License
21 stars 20 forks source link

Add a keep-alive NOOP to the C-Gate connection #17

Open Nick-Adams-AU opened 5 years ago

Nick-Adams-AU commented 5 years ago

At times, the C-Gate connection may be interrupted due to connectivity issues (i.e. WiFi dropouts) or because the server crashed or was restarted. We won't find out about this until we attempt to write to the socket possibly hours after the connection was dropped.

Add a periodic NOOP command on the C-Gate connection to detect a failed connection sooner.