# MQTT messaging

**URL:** <https://www.thethingsnetwork.org/forum/t/mqtt-messaging/59829>\
**Category:** The Things Stack v3\
**Created:** [November 8, 2022, 9:03am UTC](https://www.thethingsnetwork.org/forum/t/mqtt-messaging/59829 "2022-11-08T09:03:58Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![henrychanflag](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/henrychanflag/32/44392_2.png) [@henrychanflag](https://www.thethingsnetwork.org/forum/u/henrychanflag)\
**Post date:** [November 8, 2022, 9:03am UTC](https://www.thethingsnetwork.org/forum/t/mqtt-messaging/59829/1 "2022-11-08T09:03:59Z")

</div>

Hi, I’m new to TTN.  
Previously, I used a non-LoraWan gateway and send raw MQTT messages through it and then use hivemq MQTT broker to do my IOT functions.  
Now I need to switch to a new LoraWan gateway and there is no such kind of “pass through” functioning. So I start to do the same thing using The Things Network.  
I have just followed the instructions and created application with MQTT server.  
I’ve got the MQTT server address “au1.cloud.thethings.network:1883” with those username and passwords.Then I use MQTTBox to test this broker. I publish a simple message to this server but cannot subscribe. I’m using a random topic “TTN/Trial”.  
Could you please advise what is wrong? Thank you!!

---

<div class="post-metadata">

**Author:** ![Johan\_Scheepers](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/johan_scheepers/32/48536_2.png) [@Johan\_Scheepers](https://www.thethingsnetwork.org/forum/u/Johan_Scheepers)\
**Post date:** [November 8, 2022, 9:08am UTC](https://www.thethingsnetwork.org/forum/t/mqtt-messaging/59829/2 "2022-11-08T09:08:29Z")

</div>

Please read up on [Topics](https://www.thethingsindustries.com/docs/integrations/mqtt/) in the documentation.

---

<div class="post-metadata">

**Author:** ![kersing](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/kersing/32/44777_2.png) [@kersing](https://www.thethingsnetwork.org/forum/u/kersing)\
**Post date:** [November 8, 2022, 9:27am UTC](https://www.thethingsnetwork.org/forum/t/mqtt-messaging/59829/3 "2022-11-08T09:27:58Z")

</div>

> [@henrychanflag](#):
>
> I’m using a random topic “TTN/Trial”.

TTN does not run a public MQTT server for generic messaging. You can only subscribe to messages from your devices and publish for transmission to your devices.

---

<div class="post-metadata">

**Author:** ![henrychanflag](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/henrychanflag/32/44392_2.png) [@henrychanflag](https://www.thethingsnetwork.org/forum/u/henrychanflag)\
**Post date:** [November 8, 2022, 10:00am UTC](https://www.thethingsnetwork.org/forum/t/mqtt-messaging/59829/4 "2022-11-08T10:00:17Z")

</div>

Thanks! So my application is simply sending MQTT messages from my LoraWan node and then I have node-red to receive these messages and display in the dashboard.  
So what should I do?

---

<div class="post-metadata">

**Author:** ![Johan\_Scheepers](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/johan_scheepers/32/48536_2.png) [@Johan\_Scheepers](https://www.thethingsnetwork.org/forum/u/Johan_Scheepers)\
**Post date:** [November 8, 2022, 10:14am UTC](https://www.thethingsnetwork.org/forum/t/mqtt-messaging/59829/5 "2022-11-08T10:14:54Z")

</div>

In the documentation it describes what topic to subscribe to.

Details of what you have done so far?

Search also a bit on the forum we/me all the volunteers have posted a lot of information on this subject.

---

<div class="post-metadata">

**Author:** ![henrychanflag](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/henrychanflag/32/44392_2.png) [@henrychanflag](https://www.thethingsnetwork.org/forum/u/henrychanflag)\
**Post date:** [November 8, 2022, 1:04pm UTC](https://www.thethingsnetwork.org/forum/t/mqtt-messaging/59829/6 "2022-11-08T13:04:02Z")

</div>

Hi All, thanks for your help. I’ve studied one thread in the forum about MQTT with node-red. Just tried and it works with the simulated uplink message. I will try with the real node device shortly!
