0

send image from nodeMCU to adafruit.io
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

send image from nodeMCU to adafruit.io

by arossbach on Wed Nov 29, 2017 4:33 pm

I have a small image on m nodeMCU and I like to send it to adafruit.io with MQTT.
So I created a dashboard with an image block.
How is it possible to send an image with MQTT publish to this image block?
What data format is needed?

arossbach
 
Posts: 2
Joined: Wed Nov 29, 2017 1:59 pm

Re: send image from nodeMCU to adafruit.io

by jwcooper on Thu Nov 30, 2017 4:30 pm

I think you'd want to send it as base64 format, also here is a similar idea on how to do that:
https://learn.adafruit.com/cloud-cam-co ... o?view=all

You'll also want to turn off 'feed history' on your feed page (right sidebar) so you can send larger image sizes.

jwcooper
 
Posts: 666
Joined: Tue May 01, 2012 9:08 pm

Re: send image from nodeMCU to adafruit.io

by arossbach on Thu Nov 30, 2017 7:45 pm

Thank you.
You're right. base64 is the right one.

I found another link:
https://developer.ibm.com/recipes/tutor ... -via-mqtt/

arossbach
 
Posts: 2
Joined: Wed Nov 29, 2017 1:59 pm

Re: send image from nodeMCU to adafruit.io

by praveengs2008 on Sat Mar 23, 2019 7:37 am

This clearly explains how send image to feed on adafruit MQTT from Raspberry Bi but not from nodeMCU. Can your team help me?

praveengs2008
 
Posts: 1
Joined: Fri Mar 22, 2019 3:08 pm

Re: send image from nodeMCU to adafruit.io

by brubell on Mon Mar 25, 2019 10:09 am

praveengs2008 wrote:This clearly explains how send image to feed on adafruit MQTT from Raspberry Bi but not from nodeMCU. Can your team help me?


You'd want to convert the image you want to send to base64 encoding, then send that to Adafruit IO.

brubell
 
Posts: 336
Joined: Fri Jul 17, 2015 10:33 pm

Please be positive and constructive with your questions and comments.