From 76cb925db11bf98d7fc7030401f05f68043cc89a Mon Sep 17 00:00:00 2001 From: Roman Bazalevsky Date: Thu, 29 Nov 2018 20:58:52 +0300 Subject: [PATCH 1/1] =?utf8?q?=D0=92=D1=81=D0=B5-=D1=82=D0=B0=D0=BA=D0=B8?= =?utf8?q?=20=D0=BF=D0=B5=D1=80=D0=B5=D0=BF=D0=BE=D0=B4=D0=BA=D0=BB=D1=8E?= =?utf8?q?=D1=87=D0=B5=D0=BD=D0=B8=D0=B5=20=D0=BA=20=D0=B1=D1=80=D0=BE?= =?utf8?q?=D0=BA=D0=B5=D1=80=D1=83=20=D0=BB=D1=83=D1=87=D1=88=D0=B5=20?= =?utf8?q?=D0=B2=D1=8B=D0=BF=D0=BE=D0=BB=D0=BD=D1=8F=D1=82=D1=8C=20=D0=B2?= =?utf8?q?=D1=80=D1=83=D1=87=D0=BD=D1=83=D1=8E...?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- bin/weathermon | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bin/weathermon b/bin/weathermon index d16f871..804ba25 100755 --- a/bin/weathermon +++ b/bin/weathermon @@ -186,6 +186,9 @@ function processJson(str) return '{'..name..'}' end end) + if not mqtt_client:socket() then + mqtt_client:reconnect() + end mqtt_client:publish(mqtt_path,v) mqtt_client:loop() end -- 2.34.1