Page 1 of 1

MQTT - problems over slow connection

Posted: 13 Jun 2018, 17:02
by dirk_k
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?

Re: MQTT - problems over slow connection

Posted: 14 Jun 2018, 19:52
by TD-er
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