X-Git-Url: https://git.rvb.name/weathermon.git/blobdiff_plain/c58ad4fb6f2c4c350a6aae01b100ebb4564ad8e9..76cb925db11bf98d7fc7030401f05f68043cc89a:/bin/weathermon 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