mqtt for each measurement
parent
603a519842
commit
0e07956ef2
|
@ -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")
|
||||
|
||||
|
|
Loading…
Reference in New Issue