# Dynamically set MQTT broker configurations

**URL:** <https://discourse.nodered.org/t/dynamically-set-mqtt-broker-configurations/89902>\
**Category:** General\
**Tags:** mqtt\
**Created:** [31 July 2024 08:55 UTC](https://discourse.nodered.org/t/dynamically-set-mqtt-broker-configurations/89902 "2024-07-31T08:55:26Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![mr-jaffery](https://avatars.discourse-cdn.com/v4/letter/m/6f9a4e/32.png) [@mr-jaffery](https://discourse.nodered.org/u/mr-jaffery)\
**Post date:** [31 July 2024 08:55 UTC](https://discourse.nodered.org/t/dynamically-set-mqtt-broker-configurations/89902/1 "2024-07-31T08:55:26Z")

</div>

Is there a way to set MQTT broker configurations like server, username and password dynamically. Maybe,we can configure these things through the input to the MQTT node, or is there any other way?

---

<div class="post-metadata">

**Author:** ![GogoVega](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/gogovega/32/71313_2.png) [@GogoVega](https://discourse.nodered.org/u/GogoVega)\
**Post date:** [31 July 2024 09:00 UTC](https://discourse.nodered.org/t/dynamically-set-mqtt-broker-configurations/89902/2 "2024-07-31T09:00:26Z")

</div>

Yes, read the node help - especially `msg.broker`

---

<div class="post-metadata">

**Author:** ![E1cid](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/e1cid/32/77971_2.png) [@E1cid](https://discourse.nodered.org/u/E1cid)\
**Post date:** [31 July 2024 09:14 UTC](https://discourse.nodered.org/t/dynamically-set-mqtt-broker-configurations/89902/3 "2024-07-31T09:14:03Z")

</div>

Here is a demo of most of the help text info to [Dynamic MQTT LWT birth, Close & Will Property - #2 by Steve-Mcl](https://discourse.nodered.org/t/dynamic-mqtt-lwt-birth-close-will-property/58951/2)

---

<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:** [29 September 2024 09:14 UTC](https://discourse.nodered.org/t/dynamically-set-mqtt-broker-configurations/89902/4 "2024-09-29T09:14:05Z")

</div>

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