# MQTT Time Out / Random Disconnect

**URL:** <https://discourse.nodered.org/t/mqtt-time-out-random-disconnect/56463>\
**Category:** General\
**Created:** [11 January 2022 11:55 UTC](https://discourse.nodered.org/t/mqtt-time-out-random-disconnect/56463 "2022-01-11T11:55:44Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [11 January 2022 12:06 UTC](https://discourse.nodered.org/t/mqtt-time-out-random-disconnect/56463/2 "2022-01-11T12:06:24Z")

</div>

Odd. The connection should recover automatically.

- What version of node-red are you using?
- What version of node-js are you using?
- What broker are you using and where is your broker? (local? Lan? Cloud?)
- Have you specified a client id in your MQTT config node? If so - is this necessary? is it duplicated elsewhere?

When it is disconnected, do you wait at least 1 minute for reconnection?

---

_[View the full topic](https://discourse.nodered.org/t/mqtt-time-out-random-disconnect/56463)._
