# I can't publish data from node-red

**URL:** <https://discourse.nodered.org/t/i-cant-publish-data-from-node-red/45780>\
**Category:** General\
**Created:** [17 May 2021 12:22 UTC](https://discourse.nodered.org/t/i-cant-publish-data-from-node-red/45780 "2021-05-17T12:22:05Z")\
**Posts on this page:** 12\
**Page:** 2

<div class="post-metadata">

**Author:** ![Yaleaura](https://avatars.discourse-cdn.com/v4/letter/y/85e7bf/32.png) [@Yaleaura](https://discourse.nodered.org/u/Yaleaura)\
**Post date:** [17 May 2021 22:22 UTC](https://discourse.nodered.org/t/i-cant-publish-data-from-node-red/45780/21 "2021-05-17T22:22:04Z")

</div>

In node-red i'm connected with mqtt user and i use certificate and tls files.

---

<div class="post-metadata">

**Author:** ![Yaleaura](https://avatars.discourse-cdn.com/v4/letter/y/85e7bf/32.png) [@Yaleaura](https://discourse.nodered.org/u/Yaleaura)\
**Post date:** [17 May 2021 22:23 UTC](https://discourse.nodered.org/t/i-cant-publish-data-from-node-red/45780/22 "2021-05-17T22:23:59Z")

</div>

In node-red i'm connected with mqtt user and i use certificate and tls files

---

<div class="post-metadata">

**Author:** ![Ranki](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ranki/32/41282_2.png) [@Ranki](https://discourse.nodered.org/u/Ranki)\
**Post date:** [18 May 2021 02:11 UTC](https://discourse.nodered.org/t/i-cant-publish-data-from-node-red/45780/23 "2021-05-18T02:11:00Z")

</div>

Hello @Yaleaura,

Ok. So do I understand you right, that the MQTT broker and clients are using TLS like in following guide? If yes, which kind of certificates are you using (self-signed, Let‘s encrypt etc.)?  
[http://www.steves-internet-guide.com/mosquitto-tls/](http://www.steves-internet-guide.com/mosquitto-tls/)

Furthermore you defined a MQTT user and password, correct?

So I would recommend to try first to get the connection done with the MQTT explorer, so you know what to do and afterwards enable the MQTT client/ device to do the same (user/passcode, TLS configuration).

Cheers  
Ranki

---

<div class="post-metadata">

**Author:** ![Nathanli](https://avatars.discourse-cdn.com/v4/letter/n/cab0a1/32.png) [@Nathanli](https://discourse.nodered.org/u/Nathanli)\
**Post date:** [18 May 2021 03:11 UTC](https://discourse.nodered.org/t/i-cant-publish-data-from-node-red/45780/24 "2021-05-18T03:11:35Z")

</div>

Is there a solution now?

---

<div class="post-metadata">

**Author:** ![Yaleaura](https://avatars.discourse-cdn.com/v4/letter/y/85e7bf/32.png) [@Yaleaura](https://discourse.nodered.org/u/Yaleaura)\
**Post date:** [18 May 2021 08:45 UTC](https://discourse.nodered.org/t/i-cant-publish-data-from-node-red/45780/25 "2021-05-18T08:45:50Z")

</div>

Not yet. i'm still searching

---

<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:** [18 May 2021 10:23 UTC](https://discourse.nodered.org/t/i-cant-publish-data-from-node-red/45780/26 "2021-05-18T10:23:21Z")

</div>

I think this topic is now concluded.

the original question was "I can't publish data from node-red" but clearly you can...

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

---

<div class="post-metadata">

**Author:** ![Yaleaura](https://avatars.discourse-cdn.com/v4/letter/y/85e7bf/32.png) [@Yaleaura](https://discourse.nodered.org/u/Yaleaura)\
**Post date:** [18 May 2021 10:31 UTC](https://discourse.nodered.org/t/i-cant-publish-data-from-node-red/45780/27 "2021-05-18T10:31:51Z")

</div>

I think I put the problem wrong. Indeed I manage to send the data but the data is not received by the broker.

---

<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:** [18 May 2021 10:42 UTC](https://discourse.nodered.org/t/i-cant-publish-data-from-node-red/45780/28 "2021-05-18T10:42:00Z")

</div>

> [@Yaleaura](#):
>
> Indeed I manage to send the data but the data is not received by the broker.

According to your screenshot, the broker DOES get the data (because it comes back to the "mqtt in")

---

<div class="post-metadata">

**Author:** ![Yaleaura](https://avatars.discourse-cdn.com/v4/letter/y/85e7bf/32.png) [@Yaleaura](https://discourse.nodered.org/u/Yaleaura)\
**Post date:** [18 May 2021 10:46 UTC](https://discourse.nodered.org/t/i-cant-publish-data-from-node-red/45780/29 "2021-05-18T10:46:35Z")

</div>

But i do not see anything received on the lorawan application server interface.

---

<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:** [18 May 2021 10:52 UTC](https://discourse.nodered.org/t/i-cant-publish-data-from-node-red/45780/30 "2021-05-18T10:52:35Z")

</div>

that is a different issue.

#### perhaps the topic you are publishing to is incorrect?

e.g. Is the "lorawan application" is subscribed to the **EXACT same topic** that you are publishing to?

#### perhaps the payload you are sending to the broker is NOT correct?

e.g: I doubt the property names should have spaces in them!  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/d/e/de7fefdf8c18909c03118f3e0e2565df397c249f.png)

#### perhaps the "lorawan application" is NOT connected to the same broker?

What I can say is: Node-red IS publishing to the (broker as far as I can see from your screenshot). An easy way to confirm this is to use a client like MQTT explorer OR subscribe to the SAME topic in node-red.

---

<div class="post-metadata">

**Author:** ![Ranki](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ranki/32/41282_2.png) [@Ranki](https://discourse.nodered.org/u/Ranki)\
**Post date:** [18 May 2021 12:37 UTC](https://discourse.nodered.org/t/i-cant-publish-data-from-node-red/45780/31 "2021-05-18T12:37:26Z")

</div>

> [@Steve-Mcl](#):
>
> I doubt the property names should have spaces in them!

Agree! +1

---

<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:** [17 July 2021 12:37 UTC](https://discourse.nodered.org/t/i-cant-publish-data-from-node-red/45780/32 "2021-07-17T12:37:53Z")

</div>

Closed on 17 July 2021 12:37 UTC

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

[Previous page](https://discourse.nodered.org/t/i-cant-publish-data-from-node-red/45780.md?page=1)
