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


parent b12d6e51
......@@ -30,7 +30,7 @@ def on_message(client, userdata, msg):
print('took photo!')
base64_bytes = base64.b64encode(photo.getvalue())
base64_message = base64_bytes.decode('ascii')
x = {'houseId':jsoned_message["houseId"], 'data': 'base64_message'}
x = {'houseId':jsoned_message["houseId"], 'data': base64_message}
client.publish('birdie/rxtx/from/raspberry', payload=json.dumps(x), qos=0, retain=False)
def on_publish(client,userdata,result):
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