# How to connect node-red with mqtt broker

**URL:** <https://discourse.nodered.org/t/how-to-connect-node-red-with-mqtt-broker/82207>\
**Category:** Dashboard\
**Tags:** node-red-dashboard\
**Created:** [20 October 2023 07:05 UTC](https://discourse.nodered.org/t/how-to-connect-node-red-with-mqtt-broker/82207 "2023-10-20T07:05:05Z")\
**Posts on this page:** 1\
**Showing post:** 21

<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:** [20 October 2023 12:23 UTC](https://discourse.nodered.org/t/how-to-connect-node-red-with-mqtt-broker/82207/21 "2023-10-20T12:23:46Z")

</div>

I have corrected the flow formatting. You should have used the `</>` button at the top of the forum entry window. In order to make code readable and usable it is necessary to surround your code with three backticks (also known as a left quote or backquote `````) . The `</>` button provides those

````auto
``` 
   code goes here 
```

````

See this post for more details - [How to share code or flow json](https://discourse.nodered.org/t/how-to-share-code-or-flow-json/506)

---

_[View the full topic](https://discourse.nodered.org/t/how-to-connect-node-red-with-mqtt-broker/82207)._
