# Mqtt send block not sending data to the things network

**URL:** <https://discourse.nodered.org/t/mqtt-send-block-not-sending-data-to-the-things-network/39553>\
**Category:** General\
**Created:** [22 January 2021 10:21 UTC](https://discourse.nodered.org/t/mqtt-send-block-not-sending-data-to-the-things-network/39553 "2021-01-22T10:21:28Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![KikkertjeK](https://avatars.discourse-cdn.com/v4/letter/k/f08c70/32.png) [@KikkertjeK](https://discourse.nodered.org/u/KikkertjeK)\
**Post date:** [22 January 2021 10:21 UTC](https://discourse.nodered.org/t/mqtt-send-block-not-sending-data-to-the-things-network/39553/1 "2021-01-22T10:21:29Z")

</div>

We are trying to send data to the thing network using mqtt. It connects to the things network but does not send the data. We have tried using multiple topics but it still would not work. The topic we are using now is brandweerlora/devices/microcontroller/down. In the pictures below you can see our configuration and the data we are trying to send.

Thanks in advance!

![unknown1](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/9/1/912fac36015b2a898d252cb49de4acfda205cc83.png)  
 ![unknown](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/5/7/575f3605fa198c6f059bc6f3da3e35f5dc4ea544.png)

---

<div class="post-metadata">

**Author:** ![Easy4M](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/easy4m/32/35749_2.png) [@Easy4M](https://discourse.nodered.org/u/Easy4M)\
**Post date:** [22 January 2021 10:43 UTC](https://discourse.nodered.org/t/mqtt-send-block-not-sending-data-to-the-things-network/39553/2 "2021-01-22T10:43:06Z")

</div>

your hostname was eu.thethings.network and port 1883, right ?

---

<div class="post-metadata">

**Author:** ![Easy4M](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/easy4m/32/35749_2.png) [@Easy4M](https://discourse.nodered.org/u/Easy4M)\
**Post date:** [22 January 2021 10:44 UTC](https://discourse.nodered.org/t/mqtt-send-block-not-sending-data-to-the-things-network/39553/3 "2021-01-22T10:44:01Z")

</div>

can you share here code of this flow ?

---

<div class="post-metadata">

**Author:** ![KikkertjeK](https://avatars.discourse-cdn.com/v4/letter/k/f08c70/32.png) [@KikkertjeK](https://discourse.nodered.org/u/KikkertjeK)\
**Post date:** [22 January 2021 10:44 UTC](https://discourse.nodered.org/t/mqtt-send-block-not-sending-data-to-the-things-network/39553/4 "2021-01-22T10:44:03Z")

</div>

yes it is indeed eu.thethings.network with port 1883.

---

<div class="post-metadata">

**Author:** ![KikkertjeK](https://avatars.discourse-cdn.com/v4/letter/k/f08c70/32.png) [@KikkertjeK](https://discourse.nodered.org/u/KikkertjeK)\
**Post date:** [22 January 2021 10:45 UTC](https://discourse.nodered.org/t/mqtt-send-block-not-sending-data-to-the-things-network/39553/5 "2021-01-22T10:45:52Z")

</div>

[Moderator note: I've edited this post to make the flow importable]

```auto
[{"id":"63a9948e.a5fe1c","type":"tab","label":"Flow 2","disabled":false,"info":""},{"id":"8fb86f3e.10f92","type":"inject","z":"63a9948e.a5fe1c","name":"","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"[48,120,48,51]","payloadType":"bin","x":270,"y":200,"wires":[["122fb165.01424f","316ce673.97fb8a"]]},{"id":"122fb165.01424f","type":"mqtt out","z":"63a9948e.a5fe1c","name":"","topic":"brandweerlora/devices/microcontroller/down","qos":"0","retain":"false","broker":"f69f7f15.917c8","x":590,"y":420,"wires":[]},{"id":"316ce673.97fb8a","type":"debug","z":"63a9948e.a5fe1c","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":570,"y":240,"wires":[]},{"id":"f69f7f15.917c8","type":"mqtt-broker","name":"","broker":"eu.thethings.network","port":"1883","clientid":"","usetls":false,"compatmode":false,"keepalive":"60","cleansession":true,"birthTopic":"","birthQos":"0","birthPayload":"","closeTopic":"","closeQos":"0","closePayload":"","willTopic":"","willQos":"0","willPayload":""}]

```

---

<div class="post-metadata">

**Author:** ![Easy4M](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/easy4m/32/35749_2.png) [@Easy4M](https://discourse.nodered.org/u/Easy4M)\
**Post date:** [22 January 2021 10:46 UTC](https://discourse.nodered.org/t/mqtt-send-block-not-sending-data-to-the-things-network/39553/6 "2021-01-22T10:46:43Z")

</div>

download flow and share.

---

<div class="post-metadata">

**Author:** ![KikkertjeK](https://avatars.discourse-cdn.com/v4/letter/k/f08c70/32.png) [@KikkertjeK](https://discourse.nodered.org/u/KikkertjeK)\
**Post date:** [22 January 2021 10:48 UTC](https://discourse.nodered.org/t/mqtt-send-block-not-sending-data-to-the-things-network/39553/7 "2021-01-22T10:48:54Z")

</div>

I am a new user i cant upload attachments

---

<div class="post-metadata">

**Author:** ![Easy4M](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/easy4m/32/35749_2.png) [@Easy4M](https://discourse.nodered.org/u/Easy4M)\
**Post date:** [22 January 2021 11:05 UTC](https://discourse.nodered.org/t/mqtt-send-block-not-sending-data-to-the-things-network/39553/8 "2021-01-22T11:05:44Z")

</div>

[![](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/c/3/c38c77acad448893481d6b7a5d4dc43a286f9e5d.jpeg "Node-Red Buffers -(Integers and Floats)") ](https://www.youtube.com/watch?v=1qcXz0JTuD4)

Check on this video how need convert data and send to mqtt

---

<div class="post-metadata">

**Author:** ![Easy4M](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/easy4m/32/35749_2.png) [@Easy4M](https://discourse.nodered.org/u/Easy4M)\
**Post date:** [22 January 2021 11:07 UTC](https://discourse.nodered.org/t/mqtt-send-block-not-sending-data-to-the-things-network/39553/9 "2021-01-22T11:07:29Z")

</div>

now you data was send like raw and you have resul on topic 0x03

---

<div class="post-metadata">

**Author:** ![Easy4M](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/easy4m/32/35749_2.png) [@Easy4M](https://discourse.nodered.org/u/Easy4M)\
**Post date:** [22 January 2021 11:08 UTC](https://discourse.nodered.org/t/mqtt-send-block-not-sending-data-to-the-things-network/39553/10 "2021-01-22T11:08:36Z")

</div>

If you want send data like object need convert to str or json after send to mqtt

---

<div class="post-metadata">

**Author:** ![HaSch](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/hasch/32/35927_2.png) [@HaSch](https://discourse.nodered.org/u/HaSch)\
**Post date:** [25 January 2021 22:47 UTC](https://discourse.nodered.org/t/mqtt-send-block-not-sending-data-to-the-things-network/39553/11 "2021-01-25T22:47:34Z")

</div>

Did you try TLS (secure connection) with port 8883?

---

<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:** [26 March 2021 22:48 UTC](https://discourse.nodered.org/t/mqtt-send-block-not-sending-data-to-the-things-network/39553/12 "2021-03-26T22:48:17Z")

</div>

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