ESP MQTT data transmission over TCP

sameer_kelaskar
Posts: 7
Joined: Mon Apr 24, 2023 4:36 pm

ESP MQTT data transmission over TCP

Postby sameer_kelaskar » Sat Jul 15, 2023 9:25 am

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
Attachments
default op.png
default_data_output
default op.png (125.56 KiB) Viewed 658 times
custom_data_output.png
sample_custom_data_output
custom_data_output.png (124.96 KiB) Viewed 658 times

bidrohini
Posts: 202
Joined: Thu Oct 27, 2022 12:55 pm

Re: ESP MQTT data transmission over TCP

Postby bidrohini » Sat Jul 15, 2023 10:51 am

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.

Who is online

Users browsing this forum: No registered users and 108 guests