# Receiving mqtt from multiple TTN applications

**URL:** <https://discourse.nodered.org/t/receiving-mqtt-from-multiple-ttn-applications/50762>\
**Category:** General\
**Created:** [8 September 2021 13:11 UTC](https://discourse.nodered.org/t/receiving-mqtt-from-multiple-ttn-applications/50762 "2021-09-08T13:11:14Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Amir](https://avatars.discourse-cdn.com/v4/letter/a/c37758/32.png) [@Amir](https://discourse.nodered.org/u/Amir)\
**Post date:** [8 September 2021 13:11 UTC](https://discourse.nodered.org/t/receiving-mqtt-from-multiple-ttn-applications/50762/1 "2021-09-08T13:11:14Z")

</div>

Hello everyone, I’m trying to receive sensors data that comes from different applications

using MQTT integration and Node-Red, the issue that I’m facing is that extracting only one

application is working fine and I can receive the data from that one application.

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/f/e/feeb93818e141d0d89e06df0ee5393392eeec133.png)

when I try to add another “mqtt in” node to receive the data from another application, just

after configuring the tenant id and password for the new application and suddenly the older

mqtt-in node automatically change its server to the new application and it starts to receive the

same data from the new application

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/9/6/966457785f1a2cb1e9ebcde42e3ae1cf127a010b.png)

also using the Subscribing API that TTN provides :

“v3/{application id}@{tenant id}/devices/{device id}/up” as a topic makes the node receives

nothing from TTN. kindly help, how can I set the configuration of the mqtt in order to receive

from many applications at the same time?

---

<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:** [8 September 2021 13:13 UTC](https://discourse.nodered.org/t/receiving-mqtt-from-multiple-ttn-applications/50762/2 "2021-09-08T13:13:58Z")

</div>

You can add multiple mqtt configs that way changing the details of one does not affect the other.

---

<div class="post-metadata">

**Author:** ![Amir](https://avatars.discourse-cdn.com/v4/letter/a/c37758/32.png) [@Amir](https://discourse.nodered.org/u/Amir)\
**Post date:** [8 September 2021 13:18 UTC](https://discourse.nodered.org/t/receiving-mqtt-from-multiple-ttn-applications/50762/3 "2021-09-08T13:18:43Z")

</div>

would you elaborate more please, this is how my flow looks like:

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/9/8/9812ef9907cee3aa6d22e4c4b4a309ac525f3e05.png)

whenever I change the configuration on one of the mqtt-in nodes of one, all the others

changes and I keep receiving the same message from all the MQTT-in nodes instead of

receiving different application payloads.

---

<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:** [8 September 2021 13:22 UTC](https://discourse.nodered.org/t/receiving-mqtt-from-multiple-ttn-applications/50762/4 "2021-09-08T13:22:32Z")

</div>

> [@Amir](#):
>
> whenever I change the configuration on one of the mqtt-in nodes of one, all the others
> 
> changes and I keep receiving the same message from all the MQTT-in nodes instead of

As I said...

> [@Steve-Mcl](#):
>
> You can add multiple mqtt configs

![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/3/b/3bd7f1ea8f86fd0ae82298227b520868b0ee0aff.png)

---

<div class="post-metadata">

**Author:** ![Amir](https://avatars.discourse-cdn.com/v4/letter/a/c37758/32.png) [@Amir](https://discourse.nodered.org/u/Amir)\
**Post date:** [8 September 2021 13:25 UTC](https://discourse.nodered.org/t/receiving-mqtt-from-multiple-ttn-applications/50762/5 "2021-09-08T13:25:30Z")

</div>

Thank you so much Steve that solve the issue.

---

<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:** [22 September 2021 13:25 UTC](https://discourse.nodered.org/t/receiving-mqtt-from-multiple-ttn-applications/50762/6 "2021-09-22T13:25:36Z")

</div>

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