Skip to content

Commit

Permalink
Fix #13.
Browse files Browse the repository at this point in the history
  • Loading branch information
twatteyne committed Jan 4, 2017
1 parent 0dc7e48 commit fc37d06
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions ArgusProbe_Beamlogic.py
Original file line number Diff line number Diff line change
Expand Up @@ -249,12 +249,19 @@ def run(self):
]

# publish
paho.mqtt.publish.multiple(
msgs,
hostname = self.MQTT_BROKER_HOST,
port = self.MQTT_BROKER_PORT,
)

try:
paho.mqtt.publish.multiple(
msgs,
hostname = self.MQTT_BROKER_HOST,
port = self.MQTT_BROKER_PORT,
)
except Exception as err:
print "WARNING publication to {0}:{1} over MQTT failed ({2})".format(
self.MQTT_BROKER_HOST,
self.MQTT_BROKER_PORT,
str(type(err)),
)

except Exception as err:
logCrash(self.name,err)

Expand Down

0 comments on commit fc37d06

Please sign in to comment.