# Using MQTT in Ignition - Handling Multiple Subscriptions

**URL:** <https://forum.inductiveautomation.com/t/using-mqtt-in-ignition-handling-multiple-subscriptions/92441>\
**Category:** General Discussion\
**Created:** [June 27, 2024, 6:48am UTC](https://forum.inductiveautomation.com/t/using-mqtt-in-ignition-handling-multiple-subscriptions/92441 "2024-06-27T06:48:56Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Emmanuel\_Katto](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/emmanuel_katto/32/64337_2.png) [@Emmanuel\_Katto](https://forum.inductiveautomation.com/u/Emmanuel_Katto)\
**Post date:** [June 27, 2024, 6:48am UTC](https://forum.inductiveautomation.com/t/using-mqtt-in-ignition-handling-multiple-subscriptions/92441/1 "2024-06-27T06:48:56Z")

</div>

Hello all, I am Emmanuel Katto. I'm setting up an Ignition project that will be using MQTT to receive data from multiple devices. I'm using the Mosquitto broker and have successfully established a connection to it from Ignition.

My question is regarding the best way to handle multiple subscriptions and topic wildcards in Ignition. I have a few hundred devices sending data to different topics, and I want to be able to subscribe to all of them without having to create individual subscriptions for each one.

I've set up a few subscriptions using the `MQTT Subscribe` action, but I'm not sure how to handle the situation where multiple devices are sending data to the same topic with different payloads. For example, if I have two devices sending temperature readings to the topic `temperature/sensor1` and `temperature/sensor2`, I want to be able to distinguish between the two devices in my Ignition design.

Can anyone recommend a good approach for handling multiple subscriptions and topic wildcards in Ignition? Should I be using a specific type of MQTT client or library? Are there any best practices or examples that could help me achieve this?

Thanks!  
Emmanuel Katto

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [June 27, 2024, 11:55am UTC](https://forum.inductiveautomation.com/t/using-mqtt-in-ignition-handling-multiple-subscriptions/92441/2 "2024-06-27T11:55:52Z")

</div>

Please don't use a signature block in your post (or topic title) [per this forum's rules](https://forum.inductiveautomation.com/faq). (Use the pencil icon to edit and remove the sigs.)
