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

Update camera.py

parent 0e564061
......@@ -12,6 +12,9 @@ def on_connect(client, userdata, flags, rc):
else:
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"))
print(messagedecoded)
......
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