Page 1 of 1

ESP MQTT data transmission over TCP

Posted: Sat Jul 15, 2023 9:25 am
by sameer_kelaskar
Hi,
I am doing MQTT-TCP communication on ESP32-WROOM based Devkit board. On that I flashed the default mqtt tcp example which works all fine with data for the topic getting continuously displayed but as I tried replacing default data it just stops after a few iterations.
The broker URL I used is mosquitto test broker.
Please let me know the right way to do do.
All kind help is appreciated.

Many thanks,
Sameer

Re: ESP MQTT data transmission over TCP

Posted: Sat Jul 15, 2023 10:51 am
by bidrohini
Be cautious about the length of the data you are sending. If the new data is significantly longer than the default data, it might exceed the buffer size or cause memory issues, leading to unexpected behavior.