Skip to content

Lag when MQTT Server is down (possible workaround)  #1992

@ascillato

Description

@ascillato

Hi

It is a known Tasmota issue (Wiki) that when a Sonoff try to connect to a MQTT server that is DOWN (IP and Port, both down), the pubsubclient library hangs for 5 second on each reconnection attempt making a Sonoff unresponsive.

So, looking for a work around for this, found this other MQTT Library (https://github.com/i-n-g-o/esp-mqtt-arduino). I tested on ESP8266 and with Home Assistant, and it has no lag when losing connection to MQTT Server. It has a different approach for conecting to an MQTT Server that is not using the wificlient library like pubsubclient.

What about changing the library so as to make Tasmota faster?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugType - Confirmated BugfixedResult - The work on the issue has ended

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions