mqtt for each measurement
parent
2d06a42360
commit
a6eb60b9ba
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue