# How to detect a node's status?

**URL:** <https://discourse.nodered.org/t/how-to-detect-a-nodes-status/72709>\
**Category:** General\
**Created:** [26 December 2022 08:22 UTC](https://discourse.nodered.org/t/how-to-detect-a-nodes-status/72709 "2022-12-26T08:22:28Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Post date:** [26 December 2022 08:22 UTC](https://discourse.nodered.org/t/how-to-detect-a-nodes-status/72709/1 "2022-12-26T08:22:28Z")

</div>

Yeah, ok it is kind of obvious that the `status` node may be what I want.

I would like to confirm this.

I have an `MQTT` node and just now there is no comms to the broker.  
☹  
😭  
And so the node is in the `connecting` state.  
(Fair enough, but it won't any time soon)

So I am now aware of this _failing_ and would like to monitor the state of the node so if it is `connecting` or better `connected` I know.

Thanks in advance.  
(Sorry I have been so quite of late. A lot of stuff has happened and I am trying to get things working again and am sort of overwhelmed with things to get done)  
(and using other similar forums but are so BAD it is not funny. This is head and shoulders better.)

Belated seasonal gratuities to all.

## Update:

For the sake of it I made a new "tab" and put a basic flow with an `MQTT IN` node and a `status` node connected to a `debug` node.  
The `status` node was ONLY looking at the `MQTT IN` node.  
I changed the IP address in the browser form the IP address to `127.0.0.1` and `DEPLOYED`.  
All was good. The node showed `connected`.  
I unplugged the CAT-5 cable. NO CHANGE!  
(Aw, c'mon! That's not fair! The broker is on the interweb so it can't be connected!)

---

<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:** [26 December 2022 09:42 UTC](https://discourse.nodered.org/t/how-to-detect-a-nodes-status/72709/2 "2022-12-26T09:42:05Z")

</div>

> [@Trying\_to\_learn](#):
>
> I unplugged the CAT-5 cable. NO CHANGE!

How long did you wait? It can take a couple of minutes for the broker to give up.

Also, have you got wifi connection as well as the cable?

---

<div class="post-metadata">

**Author:** ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Post date:** [26 December 2022 09:43 UTC](https://discourse.nodered.org/t/how-to-detect-a-nodes-status/72709/3 "2022-12-26T09:43:08Z")

</div>

Thanks.

Maybe not long enough.

I'll give it a longer time try now.

No, no WiFi connection.

---

<div class="post-metadata">

**Author:** ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Post date:** [26 December 2022 09:46 UTC](https://discourse.nodered.org/t/how-to-detect-a-nodes-status/72709/4 "2022-12-26T09:46:37Z")

</div>

Sorry, I was too impatient.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [9 January 2023 09:47 UTC](https://discourse.nodered.org/t/how-to-detect-a-nodes-status/72709/5 "2023-01-09T09:47:23Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
