MQTT - problems over slow connection

Moderators: Voyager, BertB, rtenklooster, Stuntteam, grovkillen, TD-er

Post Reply
Message
Author
dirk_k
Normal user
Posts: 12
Joined: 19 Aug 2017, 22:41

MQTT - problems over slow connection

#1 Post by dirk_k » 13 Jun 2018, 17:02

Hi,
i have connection problems using MQTT over 3G-connection (limited to 28kbps).
2 other ESP-devices (using arduino IDE-code) send and receive MQTT data without problems.
The ESP-Easy devices send and receive MQTT data too until i upgrade the firmware to current version.
The old code is from middle last year, the new version is 20180524.
I am able to access the device-management without problems within the WLAN.
Within logfile i see MQTT connected (sometimes disconnected with immediate reconnect) but no data reach the MQTT server.
Problems exist while sending AND reviving MQTT data.

Are there changes within timeouts or other parameters?
Any ideas?

TD-er
Normal user
Posts: 1154
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: MQTT - problems over slow connection

#2 Post by TD-er » 14 Jun 2018, 19:52

There is some check to see if the MQTT broker is online.
This check is via ping.
Maybe the connection you use is either blocking ping, or it may take too long.
You could change the code to let the function hostReachable() return always true:
https://github.com/letscontrolit/ESPEas ... #L619-L643

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests