MQTT
The MQTT machine-to-machine messaging protocol enables the transmission of telemetry data between devices.
Use the MQTT plug-in to configure the connection to an MQTT broker or to cloud-based MQTT services such as AWS IoT or Azure IoT Hub.
The plug-in provides the broker connection. The actual data exchange takes place later via MQTT transfer objects, MQTT Subscribe as a trigger, or the MQTT Storage Read transfer object within a flow.
Use Cases
- The plug-in configuration sets up the MQTT broker connection as well as optional cloud profiles.
- The MQTT transfer object publishes messages to MQTT topics.
- MQTT Subscribe is the MQTT trigger used to monitor topics and trigger subsequent transfers.
- The MQTT Storage Read Transfer Object reads previously stored MQTT messages from MQTT Data Storage.
- The cloud profiles AWS IoT, Azure IoT Hub, and Wago Cloud supplement the default configuration with provider-specific settings.
- The MQTT Performance page describes how QoS, RTT, and connection pooling affect throughput and latency.
The default procedure is as follows:
- Open the plug-in by clicking “MQTT” in the “Plug-ins” menu.
- Click the plus button or double-click an existing entry.
- Configure the necessary settings (see the section “Plugin Configuration ”).
- Confirm by clicking “OK”.
The MQTT connection will then be available in the Flow configuration for transfer objects and triggers.
You can check your connection by clicking the “Check connection” button.
If you want to not only send or receive MQTT messages but also cache them and retrieve them later as needed, enable the MQTT Data Storage feature in the plug-in configuration.