# MQTT broker stops sending

**URL:** https://discourse.nodered.org/t/mqtt-broker-stops-sending/73332
**Category:** General
**Tags:** mqtt
**Created:** [7 January 2023 14:11 UTC](https://discourse.nodered.org/t/mqtt-broker-stops-sending/73332 "2023-01-07T14:11:08Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![tnesheim](https://avatars.discourse-cdn.com/v4/letter/t/c77e96/32.png) [@tnesheim](https://discourse.nodered.org/u/tnesheim)
#### Post date: [7 January 2023 14:11 UTC](https://discourse.nodered.org/t/mqtt-broker-stops-sending/73332/1 "2023-01-07T14:11:08Z")

</div>

Hi  
I´m using the (built in) MQTT-client to subscribe to my appliance state stream from the Electrolux IoT-platform. This works fine for a while, but then the "stream" seems to stop, and stays in that condition. The only way to start the data flow again is a to (re-)deploy my Electrolux MQTT flow.

What would be the remedy or method to get around this problem? Please advice

---

<div class="post-metadata">

### Author: ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)
#### Post date: [7 January 2023 14:44 UTC](https://discourse.nodered.org/t/mqtt-broker-stops-sending/73332/2 "2023-01-07T14:44:09Z")

</div>

What broker are you running and where is it?

What status does the MQTT node show when it stops?

> [@tnesheim](#):
>
> The only way to start the data flow again is a to (re-)deploy my Electrolux MQTT flow.

Where is that running? Is it in the same node-red instance as the MQTT In node? How are you re-deploying the flow?

If you install MQTTExplorer on one of your PCs and connect to the broker does it show data coming in?

---

<div class="post-metadata">

### Author: ![tnesheim](https://avatars.discourse-cdn.com/v4/letter/t/c77e96/32.png) [@tnesheim](https://discourse.nodered.org/u/tnesheim)
#### Post date: [8 January 2023 14:29 UTC](https://discourse.nodered.org/t/mqtt-broker-stops-sending/73332/3 "2023-01-08T14:29:20Z")

</div>

Hei  
The broker is some "black box" Electrolux MQTT service that I found the tutorial to connect to here: [GitHub - tomeko12/pyelectroluxconnect: A python module to communicate with Elecrolux Connectivity Platform](https://github.com/tomeko12/pyelectroluxconnect)

I have not seen any "disconnect messages" and I then probably need to set ut logging to file to get that since I do really not exactly know when the disconnect happens. Even if I got the messages, would it be of help? I have really not much documentaton of the broker other that the one on git. I now that the information stream stops at some point in time, and I can restart the stream by pressing the red "deploy" upper right corner button. Is probably not very elegant, but my idea was to "find" some function that could re-deploy the node or flow where the MQTT-client is.

My flow is quite simpel:

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

I have tried to use MQTT explorer, but not with sucess yet. Will try more...

---

<div class="post-metadata">

### Author: ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)
#### Post date: [8 January 2023 14:46 UTC](https://discourse.nodered.org/t/mqtt-broker-stops-sending/73332/4 "2023-01-08T14:46:10Z")

</div>

> [@tnesheim](#):
>
> I have tried to use MQTT explorer, but not with sucess yet. Will try more

I think you need to get that going in order to determine whether it is the broker or a node-red problem. What problem are you having? You should be able to connect with the same settings as you use in the node-red mqtt node.

What version of node-red are you using?

---

<div class="post-metadata">

### Author: ![tnesheim](https://avatars.discourse-cdn.com/v4/letter/t/c77e96/32.png) [@tnesheim](https://discourse.nodered.org/u/tnesheim)
#### Post date: [13 January 2023 23:00 UTC](https://discourse.nodered.org/t/mqtt-broker-stops-sending/73332/5 "2023-01-13T23:00:12Z")

</div>

Seems like the data stream just stops. I can however restart it by actually going into my Electrolux iOS app…some message probably going from the app to the broker restarting the stream.

Is there some way to re-subscribe from a broker?  
?

---

<div class="post-metadata">

### Author: ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)
#### Post date: [14 January 2023 07:25 UTC](https://discourse.nodered.org/t/mqtt-broker-stops-sending/73332/6 "2023-01-14T07:25:59Z")

</div>

> [@tnesheim](#):
>
> Is there some way to re-subscribe from a broker?  
> ?

Have a look at the Dynamic Subscription section of the mqtt node help text. You can send it a message telling it to unsubscribe, then another to the subscribe. That will not help though if the problem is between the broker and the publisher.

---

<div class="post-metadata">

### Author: ![tnesheim](https://avatars.discourse-cdn.com/v4/letter/t/c77e96/32.png) [@tnesheim](https://discourse.nodered.org/u/tnesheim)
#### Post date: [12 February 2023 17:53 UTC](https://discourse.nodered.org/t/mqtt-broker-stops-sending/73332/7 "2023-02-12T17:53:18Z")

</div>

Hi again  
I think the problem is on the broker side where Elextrolux most weekends seems to be tweaking and/or maintaing their applications/servers, apparently interrupting the MQTT data steam.

To "restart" the stream I send a "disconnect" followed by a "connect" to the broker. I do not need the dynamic subscription "thing", but I got the answer there. Thanks!

> **[Dynamic Connections - Steves Node-Red Guide](https://stevesnoderedguide.com/download/dynamic-connections)**
>
> Dynamic Connections

---

<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: [13 April 2023 17:53 UTC](https://discourse.nodered.org/t/mqtt-broker-stops-sending/73332/8 "2023-04-13T17:53:55Z")

</div>

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