1
0
mirror of https://github.com/adafruit/Adafruit_MQTT_Library.git synced 2025-06-13 10:01:31 +03:00
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):
"""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)
parsedStruct = struct.Struct('< 10s h L H') #define struct template (see below)