MQTT
Connect

The Connect MQTT Advanced action is used to connect to an MQTT broker. The established connection is contextual to the User Path and will be used to perform all the other actions (Publish, Subscribe, etc.) on the broker.

Parameters

Example

An example of connecting to a local broker using default parameter settings and associating the connection to the ‘LocalDefaultBroker’ alias:

Publish

The Publish MQTT Advanced action is used to publish a message on a specified topic to an MQTT broker.

Parameters

Example

An example publishing on the ‘/neotys.com/share/news/’ topic using the connection associated to the ‘LocalDefaultBroker’ alias:

Subscribe

The Subscribe MQTT Advanced action is used to subscribe to a topic on an MQTT broker.

Parameters

Example

An example subscribing to the ‘/neotys.com/share/news/’ topic with a default QoS value of "0" and using the connection associated to the ‘LocalDefaultBroker’ alias:

Receive

The Receive MQTT Advanced action is used to receive messages on a specified topic in a constrained amount of time.

Parameters

Example

An example of receiving messages on the ‘/neotys.com/share/news/’ topic using the connection associated to the ‘LocalDefaultBroker’ alias and expecting to receive at least 10 messages in 30 seconds, if this contract is not met the action will fail:

Unsubscribe

The Unsubscribe MQTT Advanced action is used to unsubscribe from a topic.

Parameters

Example

An example unsubscribing from the ‘/neotys.com/share/news/’ topic on the connection associated to the ‘LocalDefaultBroker’ alias.

Disconnect

The Disconnect MQTT Advanced action is used to disconnect from an MQTT broker.

Parameters

Example

An example of disconnecting from the ‘LocalDefaultBroker’ alias: