Commit f1edfa74 authored by Daniel Kolibár's avatar Daniel Kolibár
Browse files


parent 0e564061
......@@ -12,6 +12,9 @@ def on_connect(client, userdata, flags, rc):
print(f"Connecting to MQTT broker failed with code {rc}")
def customStudentDecoder(studentDict):
return namedtuple('X', studentDict.keys())(*studentDict.values())
def on_message(client, userdata, msg):
messagedecoded = str(msg.payload.decode("utf-8"))
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment