Is there a way to set the usename of mqtt dynamically

#1

I want to set the mqtt username dynamically using the default node red mqtt node? Any hits as to how i can do it?

Thanks

0 Likes

#2

Not dynamically no - but you can set it using an environment variable at start time using the $(MY_ENV_VAR) syntax in the field to read MY_ENV_VAR

0 Likes

#3

Thanks, will check it out.

0 Likes