This commit is contained in:
Stuart Feichtinger 2016-02-01 11:08:00 -06:00
parent 2eae3ec309
commit de426a886f

View File

@ -63,7 +63,6 @@ def argBegin():
def parseMsg(payload): def parseMsg(payload):
"""Parses C struct from MQTT publisher Adafruit MQTT client to Python list""" """Parses C struct from MQTT publisher Adafruit MQTT client to Python list"""
#values = payload #TODO: remove extraneous values variable?
arr = array.array('B', payload) #convert python list to C-like array of unsigned char (B) arr = array.array('B', payload) #convert python list to C-like array of unsigned char (B)
parsedStruct = struct.Struct('< 10s h L H') #define struct template (see below) parsedStruct = struct.Struct('< 10s h L H') #define struct template (see below)