MQTT set via flow

Are there a way of setting the MQTT via a flow?

image

per the Info tab

Inputs

payload
the payload to publish. If this property is not set, no message will be sent. To send a blank message, set this property to an empty String.

topic
the MQTT topic to publish to.

qos
0, fire and forget - 1, at least once - 2, once and once only. Default 0.

retain
set to true to retain the message on the broker. Default false.

Those are the things you can change dynamically

If you mean setting the broker address then no, I believe not.

You can use an environment variable in that field though so if you wrap the mqtt node in a subflow you could concatenate env vars to create your topic. That’s still not dynamic though.

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