1

I am trying to connect ESP8266 using tasmota, to a cloud mqtt broker and getting message

 MQT: Connect failed to broker.hivemq.com:1883, rc -2. Retry in 10 sec

Any ideas?

anonymous2
  • 4,902
  • 3
  • 22
  • 49
farooq
  • 131
  • 3

1 Answers1

2

Well it turns out that in versions after 9.1 Tasmota has changed the default value of MQTTWifiTimeout from 2000ms to 200ms and because ESP8266 is not a very fast MCU this low timeout value is too short. So setting:

MqttWifiTimeout 1000

from console does the trick.

anonymous2
  • 4,902
  • 3
  • 22
  • 49
farooq
  • 131
  • 3