app icon
MQTT Tools
0.0.1

Communicate with MQTT Broker

wangha/mqtt_tools555 installs

MQTT-Tools

Author: wangha

Version: 0.0.1

Type: tool

Description

The MQTT-Tools provides and commands which help you to communicate with a MQTT Broker.

command: Create a MQTT client and subscribe to a topic. This MQTT-Tools node will end when receive a message from MQTT Broker.

command: Create a MQTT client and publish a message to a topic. This MQTT-Tools node will end when publishing is done.

How to start

Input following parameters.

: sub or pub

: The address of your broker. for example: broker.emqx.io

: The port of your broker. for example: 1883

: The topic you wanna to publish or subscribe to.

: This parameter will be ignored when type is sub.

When all parameters are set.

If the is sub. This node will wait for a message from from the broker. This node will end when the message arrived.

If the is pub. This node will publish a message to of broker. This node will end when the message was sent.

If the broker is unavailable. This node will end when timeout and return a error.

Example

Here is a DSL example to use MQTT-Tools.

https://gist.github.com/wanghaEMQ/e97b009db6363d4689b2d5a6dcf3d9f5

You could also try to run this example online. click here

CATEGORY
Tool
VERSION
0.0.1
wangha·06/23/2025 01:59 AM
REQUIREMENTS
Tool invocation
Endpoint registration
Maximum memory
256MB
Maximum storage
977KB