Page 1 of 1

esp-cam - send buffer over MQTT

Posted: Fri Feb 10, 2023 5:26 am
by mcmillanje
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)

Re: esp-cam - send buffer over MQTT

Posted: Mon Feb 13, 2023 7:32 pm
by dmitrij999
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

Re: esp-cam - send buffer over MQTT

Posted: Tue Jan 23, 2024 7:56 pm
by surfskidude
Can you use Xedge32?
If so, check out this tutorial:
https://realtimelogic.com/articles/Stre ... s-via-MQTT