From b80d0756fc75e6736a2d99472cc639406853da51 Mon Sep 17 00:00:00 2001 From: Markus Reschka Date: Fri, 6 Oct 2017 20:22:53 +0200 Subject: [PATCH] Reconnect-Bugfix 2 --- helios.js | 3 ++- package.json | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/helios.js b/helios.js index a71e89d..73f7bf8 100644 --- a/helios.js +++ b/helios.js @@ -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); } diff --git a/package.json b/package.json index 47e1eff..81eccdc 100644 --- a/package.json +++ b/package.json @@ -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": {