mqtt.publish action

This trigger action will publish a message on a specified MQTT topic.

It's not possible to publish data to external broker, only to the IoTP broker.

Action

This trigger action is found under the Networking heading.

Canvas

When dragged onto the canvas, the appearance of the action is a rectangle with two routing points.

The left routing point (red) is the failure route. This route will be taken if there is an error during execution.

The right routing point (green) is the success route. This route will be taken if action executes successfully.

Form

Parameters

Name Type Required Descriptions
Topic String Yes The topic to publish to, must be a valid MQTT topic.
Payload Binary Yes The payload to publish, can be a string or binary payload.