# MQTT issues with dynamic subscribtions

**URL:** <https://discourse.nodered.org/t/mqtt-issues-with-dynamic-subscribtions/63348>\
**Category:** General\
**Created:** [1 June 2022 08:57 UTC](https://discourse.nodered.org/t/mqtt-issues-with-dynamic-subscribtions/63348 "2022-06-01T08:57:17Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![azerty123456](https://avatars.discourse-cdn.com/v4/letter/a/7cd45c/32.png) [@azerty123456](https://discourse.nodered.org/u/azerty123456)\
**Post date:** [1 June 2022 08:57 UTC](https://discourse.nodered.org/t/mqtt-issues-with-dynamic-subscribtions/63348/1 "2022-06-01T08:57:17Z")

</div>

Hello,  
I'm using in and out mqtt nodes with dynamic subscribtions.  
Through my dashboard I can type broker IP, ports and credentials and I've connect and disconnect buttons.  
It's working fine if the connexion can be established.  
However, if I type a wrong setting like an ip of a non-existing broker, nodes are sometimes stuck on "connecting". Sometimes goes to "disconnected". The problem is when I came back to an existing broker and I try to connect, the connexion cannot be established ! I've to restart flows in the deploy menu in order to connect. No problem for disconnecting and connecting to existing brokers....  
What should I do ? Is there a problem with those nodes ? With something else ?  
Before connecting, I disconnect. When disconnecting I also unsubscribe from topics (2 queued msg with 1 sec delay). After 4 sec, when connecting, I send a msg to connect to the broker with settings, and another msg to subscribe to a topic. Waiting for help ^^...

---

<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:** [1 June 2022 09:07 UTC](https://discourse.nodered.org/t/mqtt-issues-with-dynamic-subscribtions/63348/2 "2022-06-01T09:07:28Z")

</div>

All of these issues are fixed in GitHub but not yet released. If you are willing to install v 3.0.0-beta.2 you will see the improvements. If you, I would appreciate feedback either way. Ta.

---

<div class="post-metadata">

**Author:** ![azerty123456](https://avatars.discourse-cdn.com/v4/letter/a/7cd45c/32.png) [@azerty123456](https://discourse.nodered.org/u/azerty123456)\
**Post date:** [1 June 2022 09:29 UTC](https://discourse.nodered.org/t/mqtt-issues-with-dynamic-subscribtions/63348/3 "2022-06-01T09:29:17Z")

</div>

Ok thanks, I'm not admin of the node-red application so I will see if it's possible. Have a nice day !

---

<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:** [31 July 2022 09:29 UTC](https://discourse.nodered.org/t/mqtt-issues-with-dynamic-subscribtions/63348/4 "2022-07-31T09:29:19Z")

</div>

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