esp-cam - send buffer over MQTT

mcmillanje
Posts: 4
Joined: Fri Feb 10, 2023 5:21 am

esp-cam - send buffer over MQTT

Postby mcmillanje » Fri Feb 10, 2023 5:26 am

Hello,

Yes - I know this is a silly way to do this - but I have an esp32-cam and I'm using ESP-IDF.

It looks like ESP-MQTT is only able to send char*. What is the best way to encode an esp32-camera frame buffer (jpeg) to a char* to send via mqtt? (I'll decode with python)

dmitrij999
Posts: 71
Joined: Sat Mar 02, 2019 8:06 pm

Re: esp-cam - send buffer over MQTT

Postby dmitrij999 » Mon Feb 13, 2023 7:32 pm

I'd recommend you to split your image got from camera and compressed to jpeg into chunks, encode it into bson with metadata (such as parts available and number of part), and send it over MQTT.
Then, on server, decode each part and glue the parts altogether

surfskidude
Posts: 2
Joined: Fri Nov 17, 2023 2:51 pm

Re: esp-cam - send buffer over MQTT

Postby surfskidude » Tue Jan 23, 2024 7:56 pm

Can you use Xedge32?
If so, check out this tutorial:
https://realtimelogic.com/articles/Stre ... s-via-MQTT

Who is online

Users browsing this forum: No registered users and 232 guests