# How to use the Aedes MQTT broker?

**URL:** <https://discourse.nodered.org/t/how-to-use-the-aedes-mqtt-broker/48201>\
**Category:** General\
**Created:** [9 July 2021 07:11 UTC](https://discourse.nodered.org/t/how-to-use-the-aedes-mqtt-broker/48201 "2021-07-09T07:11:36Z")\
**Posts on this page:** 19\
**Page:** 2

<div class="post-metadata">

**Author:** ![jktan](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/jktan/32/41568_2.png) [@jktan](https://discourse.nodered.org/u/jktan)\
**Post date:** [9 July 2021 08:05 UTC](https://discourse.nodered.org/t/how-to-use-the-aedes-mqtt-broker/48201/21 "2021-07-09T08:05:49Z")

</div>

Two of us are using the same server pc. So will have to wait for the other to finish what he needs to do.

We have tried to click on the node id before. It doesn't take us to a node. Will try the Ctrl+F later.

---

<div class="post-metadata">

**Author:** ![jktan](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/jktan/32/41568_2.png) [@jktan](https://discourse.nodered.org/u/jktan)\
**Post date:** [9 July 2021 08:08 UTC](https://discourse.nodered.org/t/how-to-use-the-aedes-mqtt-broker/48201/22 "2021-07-09T08:08:08Z")

</div>

I kind of understand what MQTT is and does. Have watched one or more videos. Just forgot that "local" could mean "local network".

Will try the MQTT Explorer.

---

<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:** [9 July 2021 08:09 UTC](https://discourse.nodered.org/t/how-to-use-the-aedes-mqtt-broker/48201/23 "2021-07-09T08:09:53Z")

</div>

> [@jktan](#):
>
> We have tried to click on the node id before. It doesn't take us to a node.

That often means its coming from a subflow. Do you have subflows?

If searching the ID doesnt work, try searching `127.0.0.1` or `102` for clues

---

<div class="post-metadata">

**Author:** ![jktan](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/jktan/32/41568_2.png) [@jktan](https://discourse.nodered.org/u/jktan)\
**Post date:** [9 July 2021 08:15 UTC](https://discourse.nodered.org/t/how-to-use-the-aedes-mqtt-broker/48201/24 "2021-07-09T08:15:00Z")

</div>

Found an unused node. Deleted and Deploy again. No more such error messages.

---

<div class="post-metadata">

**Author:** ![jktan](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/jktan/32/41568_2.png) [@jktan](https://discourse.nodered.org/u/jktan)\
**Post date:** [9 July 2021 08:25 UTC](https://discourse.nodered.org/t/how-to-use-the-aedes-mqtt-broker/48201/25 "2021-07-09T08:25:04Z")

</div>

Still not uploading

---

<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:** [9 July 2021 08:40 UTC](https://discourse.nodered.org/t/how-to-use-the-aedes-mqtt-broker/48201/26 "2021-07-09T08:40:12Z")

</div>

Have you connected MQTT explorer to the cloud broker & watched the topics you are publishing to?

What happens if you subscribe to a topic that you publish to - do you get data back?

e.g...  
 ![VvLbMR3IkD](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/a/4/a47b27f7bc821856bcde01b0cccee903fe9ca272.gif)

---

<div class="post-metadata">

**Author:** ![jktan](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/jktan/32/41568_2.png) [@jktan](https://discourse.nodered.org/u/jktan)\
**Post date:** [10 July 2021 01:19 UTC](https://discourse.nodered.org/t/how-to-use-the-aedes-mqtt-broker/48201/27 "2021-07-10T01:19:35Z")

</div>

Good morning, Steve. Thank you for your continued reply. Today is Saturday for me. The lab is closed. Will get back to you on Monday.

---

<div class="post-metadata">

**Author:** ![jktan](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/jktan/32/41568_2.png) [@jktan](https://discourse.nodered.org/u/jktan)\
**Post date:** [12 July 2021 03:36 UTC](https://discourse.nodered.org/t/how-to-use-the-aedes-mqtt-broker/48201/28 "2021-07-12T03:36:18Z")

</div>

Hi, Steve.

Using MQTT Explorer, I can connect to [test.mosquitto.org](http://test.mosquitto.org) and view the topics and messages on $SYS.

However, I cannot connect to [mqtt.eclipse.org](http://mqtt.eclipse.org) or the TDC-E device on DECADA. Got an error message, "Disconnected from server".

---

<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:** [12 July 2021 06:27 UTC](https://discourse.nodered.org/t/how-to-use-the-aedes-mqtt-broker/48201/29 "2021-07-12T06:27:17Z")

</div>

It might be a security thing. I.e. they may disconnect anyone trying to access topics they are not permitted to see.

Edit the topics to watch in the settings of MQTT explorer before connecting.

---

<div class="post-metadata">

**Author:** ![jktan](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/jktan/32/41568_2.png) [@jktan](https://discourse.nodered.org/u/jktan)\
**Post date:** [12 July 2021 06:33 UTC](https://discourse.nodered.org/t/how-to-use-the-aedes-mqtt-broker/48201/30 "2021-07-12T06:33:49Z")

</div>

Have entered the topics earlier. Same problem.

---

<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:** [12 July 2021 06:34 UTC](https://discourse.nodered.org/t/how-to-use-the-aedes-mqtt-broker/48201/31 "2021-07-12T06:34:30Z")

</div>

But did you remove SYS and # ?

---

<div class="post-metadata">

**Author:** ![jktan](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/jktan/32/41568_2.png) [@jktan](https://discourse.nodered.org/u/jktan)\
**Post date:** [12 July 2021 06:35 UTC](https://discourse.nodered.org/t/how-to-use-the-aedes-mqtt-broker/48201/32 "2021-07-12T06:35:25Z")

</div>

No. Supposed to remove these two?

---

<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:** [12 July 2021 06:39 UTC](https://discourse.nodered.org/t/how-to-use-the-aedes-mqtt-broker/48201/33 "2021-07-12T06:39:11Z")

</div>

> [@jktan](#):
>
> Supposed to remove these two?

I don't know. That's why I used the word "might"...

> [@Steve-Mcl](#):
>
> It might be a security thing. I.e. they may disconnect anyone trying to access topics they are not permitted to see

---

<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:** [12 July 2021 06:40 UTC](https://discourse.nodered.org/t/how-to-use-the-aedes-mqtt-broker/48201/34 "2021-07-12T06:40:10Z")

</div>

Also, did you do this test? What was the result?

> [@Steve-Mcl](#):
>
> What happens if you subscribe to a topic that you publish to - do you get data back?
> 
> e.g...
> 
> ![VvLbMR3IkD](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/a/4/a47b27f7bc821856bcde01b0cccee903fe9ca272.gif)

---

<div class="post-metadata">

**Author:** ![jktan](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/jktan/32/41568_2.png) [@jktan](https://discourse.nodered.org/u/jktan)\
**Post date:** [12 July 2021 07:42 UTC](https://discourse.nodered.org/t/how-to-use-the-aedes-mqtt-broker/48201/35 "2021-07-12T07:42:44Z")

</div>

The publishing and subscribing seem fine in the flow that you shared for importing.

Hmmm.... Let me try something similar on my TDC-E flow.

---

<div class="post-metadata">

**Author:** ![jktan](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/jktan/32/41568_2.png) [@jktan](https://discourse.nodered.org/u/jktan)\
**Post date:** [12 July 2021 08:43 UTC](https://discourse.nodered.org/t/how-to-use-the-aedes-mqtt-broker/48201/36 "2021-07-12T08:43:15Z")

</div>

Same error message: "Disconnected from server"

---

<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:** [12 July 2021 09:12 UTC](https://discourse.nodered.org/t/how-to-use-the-aedes-mqtt-broker/48201/37 "2021-07-12T09:12:10Z")

</div>

So, you are saying...

- node-red connects to this cloud based MQTT server (green connected status)?
- node-red can publish (and subscribe) as per the test flow to this cloud based MQTT server?
- In MQTT Explorer you have only subscribed to topics of interest?  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/2/2/22bc56ece152a18bdf3ed846833232a97263d30f.png)

Where you said "The publishing and subscribing seem fine in the flow that you shared for importing." - is that to this cloud based MQTT or a local network broker?

I am unsure where you are at TBH.

---

<div class="post-metadata">

**Author:** ![jktan](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/jktan/32/41568_2.png) [@jktan](https://discourse.nodered.org/u/jktan)\
**Post date:** [13 July 2021 00:43 UTC](https://discourse.nodered.org/t/how-to-use-the-aedes-mqtt-broker/48201/38 "2021-07-13T00:43:24Z")

</div>

> [@Steve-Mcl](#):
>
> node-red connects to this cloud based MQTT server (green connected status)?

Yes

> [@Steve-Mcl](#):
>
> node-red can publish (and subscribe) as per the test flow to this cloud based MQTT server?

No

> [@Steve-Mcl](#):
>
> In MQTT Explorer you have only subscribed to topics of interest?

Yes

> [@Steve-Mcl](#):
>
> Where you said "The publishing and subscribing seem fine in the flow that you shared for importing." - is that to this cloud based MQTT or a local network broker?

The local network broker

---

<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:** [11 September 2021 00:44 UTC](https://discourse.nodered.org/t/how-to-use-the-aedes-mqtt-broker/48201/39 "2021-09-11T00:44:18Z")

</div>

Closed on 11 September 2021 00:44 UTC

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

[Previous page](https://discourse.nodered.org/t/how-to-use-the-aedes-mqtt-broker/48201.md?page=1)
