Skip to content

Commit

Permalink
Reconnect-Bugfix 2
Browse files Browse the repository at this point in the history
  • Loading branch information
mreschka committed Oct 6, 2017
1 parent ce4aec6 commit b80d075
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion helios.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,9 @@ function Helios(variableTableFile, modbusIp, modbusPort) {

setInterval(function () {
if (!self.modbusConnected) {
self.queue.pause();
log.info('Reconnecting modbus slave after disconnect.');
self.modbusClient.reconnect();
self.modbusClient.connect();
}
}, 10000);
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "helios2mqtt",
"private": false,
"version": "0.0.8",
"version": "0.0.9",
"description": "Helios Easy Controls modbus tcp to mqtt-smarthome daemon.",
"main": "index.js",
"bin": {
Expand Down

0 comments on commit b80d075

Please sign in to comment.