Hi
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:
![image](https://global.discourse-cdn.com/business6/uploads/nodered/original/3X/3/3/33ba409117672615caec3c19bb58b2abfb14662e.png)
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
![chrome_WoPBP4U5O6](https://global.discourse-cdn.com/business6/uploads/nodered/original/3X/3/9/399fc432e3d8c0259ecae626f738ffaeb2c68a2c.gif)
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:
![image](https://global.discourse-cdn.com/business6/uploads/nodered/original/3X/4/5/454d7f93e8b8aca7bb1b748771e5988fe8510516.png)
But doesn't seem to be working.
Amazing example!
Just Perfect!
Thank you!
This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.