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 connection.
Application
- 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 for monitoring topics and triggering subsequent transfers.
- The MQTT Storage Read Transfer Object reads previously stored MQTT messages from the MQTT Data Storage.
- The cloud profiles AWS IoT, Azure IoT Hub, and Wago Cloud supplement the standard configuration with provider-specific settings.
- The MQTT Performance page describes the effects of QoS, RTT, and connection pooling on throughput and latency.
The standard procedure is as follows:
- Open the plugin by clicking “MQTT” in the “Plugins” menu.
- Click the plus button or double-click an existing entry.
- Configure the necessary settings (see the section “Plug-in Configuration”).
- Confirm by clicking “OK”.
The MQTT connection is then available in the connection configuration for transfer objects and triggers.
You can check your connection using the “Test Connection” button.
If you want to not only send or receive MQTT messages, but also cache them and read them later as needed, enable the MQTT Data Storage function in the plug-in configuration.