I am trying to configure the mqtt-broker node from the dashboard.
I've been searching the forum for a while to see if anyone has tried it, but i haven´t found it.
My intention is with a form node to fill all these fields, instead of filling them from the mqtt-in/mqtt-out node.
Thanks, but my problem is that i want to set server properties via msg properties as i can do it with the topic, qos or retain properties.
Something like this:
Hi Since you are new to the forum, Please have a look at this to attach your flows.
To answer your question:
The mqtt-in node doesnt support setting the server details dynamically for various reasons. But, you could do it via environment variables.
Here are the steps:
Use a change node and set msg.properties(Obtained from UI) to an environmental variable say MY_ENV_VAR.
Open the server details inside your node and enter ${MY_ENV_VAR} in the text box. This should allow you to dynamically set the server configs from your UI.
Hi, should I make an environmental variable for each properties? or Can I make an object with the properties? I am currently testing this second option, but when I go to search for the property MY_ENV_VAR.name does not return the value.