You've already forked Adafruit_MQTT_Library
mirror of
https://github.com/adafruit/Adafruit_MQTT_Library.git
synced 2025-07-29 02:02:00 +03:00
Clean up
This commit is contained in:
@ -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)
|
||||||
|
Reference in New Issue
Block a user