MQTT Protocol Added

The latest version of ProtoTwin Connect (V2.3) supports the MQTT protocol. The integrated high-performance driver supports both MQTT 3.1.1 and MQTT 5.0. Additionally, it supports both secure (SSL/TLS) and insecure connections.

To connect to a MQTT broker, just add a Tag Server through the IO Browser and select MQTT as the protocol. Enter the host address and port for the broker. Additionally, you may optionally enter a username and password if the broker requires authentication.

For low latency communications, it is recommended to run the broker locally rather than using public brokers. For example, you can install the Mosquitto broker and use localhost as the host.

Once the tag server has been added, you can configure the tags that you want to read/write. Note that you can select between text, binary (big endian) and binary (little endian) as the format for the tag.

To use the MQTT protocol, ensure that you download the latest ProtoTwin Connect version. The protocol is available on all supported operating systems, including Windows, MacOS and Linux.

1 Like