What is the maximum data size that can be sent using MQTT on an ESP32, and is this task blocking?

Hi team, What is the maximum data size that can be sent using MQTT on an ESP32, and is this task blocking?
3 Replies
Umesh Lokhande
Umesh Lokhande3mo ago
Usually, MQTT protocol allows the payload size of up to 256 MB. But always recommended to check with the broker documentation to ensure if there is any limit from mqtt broker s/w side. I don't think the size has to do with MCU either ESP32 or any other
youcef_ali
youcef_ali3mo ago
Publishing an important size of data we'll block the cpu or just pass data to the tcp/ip stack and initiate tye transfer and do something else ?
Umesh Lokhande
Umesh Lokhande3mo ago
I'd prefer asynchronous handling of data using buffer and then let the CPU handle other tasks. In this case, data transfer will be hapenning in the background so the CPU is free to complete other tasks