Skip to content

Commit 4c92b04

Browse files
committed
Fix wrt feedback
1 parent 8c1f2a5 commit 4c92b04

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

MEMENTO/IoT_Bird_Feeder/code.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959

6060
def send_jpeg_to_io():
6161
# before we send the image to IO, it needs to be encoded into base64
62-
encoded_data = binascii.b2a_base64(jpeg).strip()
62+
encoded_data = binascii.b2a_base64(jpeg).strip().decode("utf-8")
6363
# then, send the encoded_data to Adafruit IO camera feed
6464
print("Sending image to IO...")
6565
io.send_data(feed_camera["key"], encoded_data)

0 commit comments

Comments
 (0)