# MQTT Message Not Being Sent

**URL:** <https://discourse.nodered.org/t/mqtt-message-not-being-sent/90504>\
**Category:** General\
**Tags:** mqtt\
**Created:** [28 August 2024 12:41 UTC](https://discourse.nodered.org/t/mqtt-message-not-being-sent/90504 "2024-08-28T12:41:17Z")\
**Posts on this page:** 7\
**Page:** 2

<div class="post-metadata">

**Author:** ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Post date:** [29 August 2024 12:31 UTC](https://discourse.nodered.org/t/mqtt-message-not-being-sent/90504/21 "2024-08-29T12:31:09Z")

</div>

Yeah, forgot about `_msgid`

---

<div class="post-metadata">

**Author:** ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Post date:** [30 August 2024 02:53 UTC](https://discourse.nodered.org/t/mqtt-message-not-being-sent/90504/22 "2024-08-30T02:53:38Z")

</div>

@wcx  
(and others)  
So if one of the flows _works_ and can send all the messages, and this one doesn't.....

Yes, Colin just mentioned the `_msgid` part.

On the SENDING machine (Oh, also it may be handy to ..... _join_ all the wires before going to the `MQTT out` node.) then you can simply add ONE wire to a `debug` node:

Put a `debug` node and check that part of the message and check for things like that being common to all messages.

(_join the wires_... `alt shift LMB (drag) the mouse over all the wires and they will be connected together.)

---

<div class="post-metadata">

**Author:** ![wcx](https://avatars.discourse-cdn.com/v4/letter/w/3d9bf3/32.png) [@wcx](https://discourse.nodered.org/u/wcx)\
**Post date:** [2 September 2024 14:14 UTC](https://discourse.nodered.org/t/mqtt-message-not-being-sent/90504/23 "2024-09-02T14:14:39Z")

</div>

Team,

Here is what resolved my issue, I had one MQTT server configuration for all flows, I ended up trying a MQTT server configuration per flow and this magically sorted out my issue.

Perhaps all the flows each establishes new connections with the same specified client id and my broker does not like this.

Thanks for everyone's help though, much appreciated.

---

<div class="post-metadata">

**Author:** ![cymplecy](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/cymplecy/32/2773_2.png) [@cymplecy](https://discourse.nodered.org/u/cymplecy)\
**Post date:** [2 September 2024 14:26 UTC](https://discourse.nodered.org/t/mqtt-message-not-being-sent/90504/24 "2024-09-02T14:26:00Z")

</div>

You must either use unique ClientIDs or nothing at all (which is the most common approach) when connecting to the same broker.

A broker will disconnect an existing connection if a new one with the same ClientID connects

---

<div class="post-metadata">

**Author:** ![wcx](https://avatars.discourse-cdn.com/v4/letter/w/3d9bf3/32.png) [@wcx](https://discourse.nodered.org/u/wcx)\
**Post date:** [2 September 2024 14:37 UTC](https://discourse.nodered.org/t/mqtt-message-not-being-sent/90504/25 "2024-09-02T14:37:24Z")

</div>

my thinking was it will maintain a open connection for all the flows instead of starting and stopping a connection if and when messages are being sent

---

<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:** [2 September 2024 14:50 UTC](https://discourse.nodered.org/t/mqtt-message-not-being-sent/90504/26 "2024-09-02T14:50:13Z")

</div>

Since you did not respond to my request to see what the logs said it is difficult to comment further.

Normally one would only use one broker node as that is the most efficient way of doing it.

---

<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:** [16 September 2024 14:50 UTC](https://discourse.nodered.org/t/mqtt-message-not-being-sent/90504/27 "2024-09-16T14:50:45Z")

</div>

Closed on 16 September 2024 14:50 UTC

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

[Previous page](https://discourse.nodered.org/t/mqtt-message-not-being-sent/90504.md?page=1)
