Skip to main content

MQTT

MQTT

MQTT (Message Queuing Telemetry Transport) is a lightweight messaging protocol based on the publish/subscribe model. It is designed for reliable, low‑bandwidth communications, typically in IoT and SCADA systems. It operates with a central broker that distributes messages between clients using hierarchical topics.

image12.png

Panorama includes a native MQTT client. It allows you to connect to MQTT brokers, publish to and subscribe to topics, and process incoming messages.

Proven interoperability​

Panorama’s MQTT client covers a wide range of use cases and deployment contexts.
In particular, Panorama supports: 

  • MQTT version 3.1.1. Panorama can connect to brokers such as Mosquitto®, HiveMQ®, EMQX®, Azure IoT Hub®, AWS IoT Core®…
  • Selecting topics individually or globally using wildcards (so you can subscribe to groups of topics).
  • The different Quality of Service (QoS) levels: 0 (At most once), 1 (At least once) and 2 (Exactly once).
    This lets you control message delivery reliability according to your needs and network capabilities.
  • Session handling (including persistent sessions).
  • Different security modes: encrypted communications, client authentication by username/password or by certificate, …
  • All payload formats.
    Panorama does not impose any message format. It provides a built‑in deserializer for JSON, but you can also handle other formats such as XML, plain text, binary, …

Simplified implementation​

Managing the MQTT connection is separated from the formatting/parsing of MQTT messages. This provides more flexibility when handling messages.
This allows you to: 

  • For JSON: use Panorama’s Serialization and deserialization of “external” data function to convert JSON into objects that are easy to manipulate (see here).
    This notably makes it possible to handle advanced JSON formats (including for telemetry).
  • For other formats: create C# scripts, VBScripts, formulas, or user objects to convert messages into data that can be manipulated in the Panorama application.

Benefits of the Panorama platform​

Naturally, Panorama’s general capabilities apply to this feature. For example: 

  • Once parsed in Panorama, all data is handled as properties. Data acquired via MQTT therefore benefits from all suite functions: alarm, archiving, calculation, …
  • Particular attention has been paid to performance.
    For example, connection objects share the same connection to the broker when their connection parameters are identical, which helps limit resource usage.
  • …

And also​

In addition to this documentation, you will find an example implementation of the MQTT protocol on PanoXchange: