We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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
The text was updated successfully, but these errors were encountered:
No branches or pull requests
migrate pack strings here
PyonAir-pycom/code/lib/PM_read.py
Line 137 in 0187742
709d497e870578f5a8a354f5c4bedf573b72346f
The text was updated successfully, but these errors were encountered: