Add Broker credentials manager on the dashboard?


Is there a way to allow the dashboard user to add a mqtt broker without having to entering the editor and edit the broker node?
In other words, could you push the server host + user name and password to a broker node?

Thank you.
Cheers, Luís Pereira.

Hi @LuisPereira

This will be an extremely complex thing to do.

  • MQTT connections are based on a Config node (so no simple messages to alter it)
  • You will need to facilitate the ability to access the Node RED API's from the dashboard.

My answer to this: find a different way, but thats not to say someone here may have a solution - But personally, I really wouldn't.

Not sure I recommend it any more than Marcus does but here you go - from the help panel:


1 Like

Oh! Interesting - I didn’t think that was possible - nice to know

Thank you.
Although I'm not sure where you found that, in my help panel within nodered editor I can't see that whether I search for broker or mqtt.
Also, whats is the 'connect action' and where can I edit this?

Thank you for your help.

Cheers, Luís Pereira.

What version of Node-RED are you running?

Info is in the MQTT OUT and IN nodes


My bad, I was looking at the mqtt-broker only.
Now I'm not sure if this action, broker and so on should go on msg. like this:

But doesn't seem to be working.

No, that is not quite right

See example here: Dynamic MQTT node's "actions->connect" guidance needed - #2 by Steve-Mcl

Amazing example!
Just Perfect!
Thank you!

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