# Subscribing multiple applications using MQTT in Node Red

**URL:** <https://www.thethingsnetwork.org/forum/t/subscribing-multiple-applications-using-mqtt-in-node-red/53587>\
**Category:** Uncategorized\
**Created:** [December 2, 2021, 10:17am UTC](https://www.thethingsnetwork.org/forum/t/subscribing-multiple-applications-using-mqtt-in-node-red/53587 "2021-12-02T10:17:24Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![UtkarshPanara](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/utkarshpanara/32/35697_2.png) [@UtkarshPanara](https://www.thethingsnetwork.org/forum/u/UtkarshPanara)\
**Post date:** [December 2, 2021, 10:17am UTC](https://www.thethingsnetwork.org/forum/t/subscribing-multiple-applications-using-mqtt-in-node-red/53587/1 "2021-12-02T10:17:24Z")

</div>

Hello!!

I am trying to implement a network with 5 applications, each application containing 2 to 3 sensors. It will be integrated with Node Red and finally data will be shown on dashboard. The question is for each application do I need to configure one MQTT broker (Total 5 MQTT broker for 5 applications) in Node red or is there a way to have only one or lesser MQTT broker?

Additional Info:  
The things stack open source is running on private server. Node red is also installed on the same server.

---

<div class="post-metadata">

**Author:** ![pe1mew](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/pe1mew/32/48520_2.png) [@pe1mew](https://www.thethingsnetwork.org/forum/u/pe1mew)\
**Post date:** [December 2, 2021, 10:54am UTC](https://www.thethingsnetwork.org/forum/t/subscribing-multiple-applications-using-mqtt-in-node-red/53587/2 "2021-12-02T10:54:10Z")

</div>

> [@UtkarshPanara](#):
>
> is there a way to have only one or lesser MQTT broker?

Not that I am aware of. I presume that you mean an MQTT client node in Node-RED.

It is in the nature of MQTT to subscribe using wildcards. In TTN however, access to topics that are related to the application is managed using username:password. As a result of this, you may only subscribe to the topic of your application and you cannot use wildcards anymore to subscribe to multiple topics.

---

<div class="post-metadata">

**Author:** ![Johan\_Scheepers](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/johan_scheepers/32/46550_2.png) [@Johan\_Scheepers](https://www.thethingsnetwork.org/forum/u/Johan_Scheepers)\
**Post date:** [December 2, 2021, 11:26am UTC](https://www.thethingsnetwork.org/forum/t/subscribing-multiple-applications-using-mqtt-in-node-red/53587/3 "2021-12-02T11:26:23Z")

</div>

You will need to configure 5 MQTT nodes in Node-Red, one for each application.

Each application will have its own User name and password.

---

<div class="post-metadata">

**Author:** ![UtkarshPanara](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/utkarshpanara/32/35697_2.png) [@UtkarshPanara](https://www.thethingsnetwork.org/forum/u/UtkarshPanara)\
**Post date:** [December 2, 2021, 12:19pm UTC](https://www.thethingsnetwork.org/forum/t/subscribing-multiple-applications-using-mqtt-in-node-red/53587/4 "2021-12-02T12:19:50Z")

</div>

Thank you for response. I understand that I can use wildcards for end devices in one application but it does not work across applicating. I need to configure MQTT nodes as many applications I create.

---

<div class="post-metadata">

**Author:** ![Johan\_Scheepers](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/johan_scheepers/32/46550_2.png) [@Johan\_Scheepers](https://www.thethingsnetwork.org/forum/u/Johan_Scheepers)\
**Post date:** [December 2, 2021, 12:34pm UTC](https://www.thethingsnetwork.org/forum/t/subscribing-multiple-applications-using-mqtt-in-node-red/53587/5 "2021-12-02T12:34:40Z")

</div>

Yes you use “v3/+/devices/+/up” in the topic and all the devices uplinks in that application will be reported

---

<div class="post-metadata">

**Author:** ![system](https://www.thethingsnetwork.org/forum/uploads/default/original/3X/6/2/6250ea44fd2b0d6259489e1a92748df681e1f970.png) [@system](https://www.thethingsnetwork.org/forum/u/system)\
**Post date:** [December 3, 2021, 12:34pm UTC](https://www.thethingsnetwork.org/forum/t/subscribing-multiple-applications-using-mqtt-in-node-red/53587/6 "2021-12-03T12:34:42Z")

</div>

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