# Best way to check the connected state of an MQTT node before publishing?

**URL:** <https://discourse.nodered.org/t/best-way-to-check-the-connected-state-of-an-mqtt-node-before-publishing/7955>\
**Category:** General\
**Created:** [14 February 2019 09:34 UTC](https://discourse.nodered.org/t/best-way-to-check-the-connected-state-of-an-mqtt-node-before-publishing/7955 "2019-02-14T09:34:20Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [14 February 2019 14:19 UTC](https://discourse.nodered.org/t/best-way-to-check-the-connected-state-of-an-mqtt-node-before-publishing/7955/6 "2019-02-14T14:19:33Z")

</div>

You can use a Status node to tell you the current state of the connection.

---

_[View the full topic](https://discourse.nodered.org/t/best-way-to-check-the-connected-state-of-an-mqtt-node-before-publishing/7955)._
