migrate pack strings here
github-actions opened this issue · 0 comments
github-actions commented
migrate pack strings here
PyonAir-pycom/code/lib/PM_read.py
Line 137 in 0187742
if (self.welfordsCount >= PM_SAMPLE_COUNT_FOR_AVERAGE): #Keep adding data
variance = self.welfordsM2/self.welfordsCount
sampleVariance = self.welfordsM2 / (self.welfordsCount -1)
#A = message type class/ see ring buffer -- for pickle
secInt = secOfTheMonth() # TIME_ISO8601_FMT.format(*time.gmtime())
dataMsg = [self.port, secInt, self.welfordsCount ,self.welfordsMean]# ,round(sampleVariance), round(variance)]
#formatStr = "<BHHHHH"
#print(dataMsg)
#payload = struct.pack(formatStr, *dataMsg)
#print("here66666")
#payloadStr = "<BHHHHH," + str(b2a_base64(payload))
#TODO: migrate pack strings here
#averageStr = ",".join()
self.averageLogger.log_row(str(dataMsg))
self.msgBuffer.push(dataMsg) #TODO: add to buffer to Transmit this data
#Reset welfords
self.welfordsCount = 0
self.welfordsMean = 0
709d497e870578f5a8a354f5c4bedf573b72346f