Skip to content

Commit 38f661b

Browse files
authored
Merge pull request #2954 from brentru/fix-iot-bird-feeder
Fix: IoT Bird Feeder
2 parents 8c1f2a5 + 4c92b04 commit 38f661b

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)