Sending large data over MQTT
Posted: Tue Jul 30, 2019 1:18 pm
Hi everybody,
I have to send multiple files (about 1000) content (for a total of about 1 MB or more) via MQTT to a remote broker.
Since ESP32-WROOM-32 has limited RAM I can't read all files and put in a buffer before publish it.
Is there any way to perform a "chuncked/segmented" publishing with esp-mqtt library?
It seems that
need to know the length of the message and the pointer to content, but in my case I can't get the total length and I would like to open the file one by one and send the data during the publish connection.
Thanks
I have to send multiple files (about 1000) content (for a total of about 1 MB or more) via MQTT to a remote broker.
Since ESP32-WROOM-32 has limited RAM I can't read all files and put in a buffer before publish it.
Is there any way to perform a "chuncked/segmented" publishing with esp-mqtt library?
It seems that
Code: Select all
esp_mqtt_client_publish
Thanks