mqtt for each measurement

master
ademant 2019-07-03 15:51:47 +02:00
parent 2d06a42360
commit a6eb60b9ba
1 changed files with 1 additions and 1 deletions

View File

@ -121,7 +121,7 @@ class meas_data:
def append(self,value):
self.value.append(value)
if self.mqtt_bool:
thread.start_new_thread(self.send_mqtt,(0,value=value))
thread.start_new_thread(self.send_mqtt,(0,value))
if (len(self.mval)==0) and (len(self.value)>1):
self.stat_mean=numpy.mean(self.value)
self.stat_std=numpy.std(self.value)/numpy.sqrt(len(self.value)-1)