mqtt for each measurement

master
ademant 2019-07-03 17:04:19 +02:00
parent 603a519842
commit 0e07956ef2
1 changed files with 1 additions and 1 deletions

View File

@ -191,7 +191,7 @@ class meas_data:
sv=self.value[-1]
if sv >(-99):
try:
publish.single(self.mqtt_topic,value,hostname=self.mqtt_broker,port=self.mqtt_port)
publish.single(self.mqtt_topic,sv,hostname=self.mqtt_broker,port=self.mqtt_port)
except:
print("could not send mqtt")