• AnyViz
  • Overview
    • Concept
    • System constellations
    • OEM Cloud Instance
    • VPN Cloud Access
    • Security
  • Use Cases
    • IIoT
    • Industry 4.0
    • Cloud HMI
    • Energy Management
    • Building Automation
    • Water supply
    • Machine to Machine (M2M)
    • Remote Monitoring
    • Energy Monitoring
    • Wastewater treatment
    • Smart Grid
  • Connectivity
    • Cloud Adapter
    • Getting started
    • IoT Gateway
  • FAQ
  • Features
enEN
deDE
AnyViz Portal
en
de
Portal

The MQTT protocol for communication in the cloud

7 years ago
Automation

Since December 2017 AnyViz supports the MQTT protocol to transfer data from any IoT device to our cloud portal. We would like to use this blog post to explain the protocol and its advantages and disadvantages.

MQTT is an open protocol designed for the transfer of data between machines (M2M). Since it is quite easy to implement, it is supported by many devices. The data to be transferred is organized in so-called topics, which can be structured hierarchically:

  • Machine1/Drive/Status
  • Machine1/Drive/Speed
  • Machine2/Temperature

The message content (or payload) is not specified in the protocol. The content is often transmitted in the form of a UTF8 string, which contains either the value in plain text or a complex object in the form of the JSON notation. Transferring values in binary format is also common.

A so-called broker is required for data exchange via MQTT. The corresponding clients can connect to this broker and provide or subscribe to data. More detailed information can be found in the protocol specification.

MQTT with Anyviz

The AnyViz team always strives to make the handling of data and protocols as easy as possible. For this reason, the AnyViz server itself acts as a broker. As soon as an MQTT device is successfully linked to a customer project, all topics provided by the end device appear automatically. The handling of JSON objects is particularly convenient. These are automatically recognized by AnyViz and are clearly displayed. Our MQTT documentation describes how easy it is to connect to AnyViz via MQTT.

Advantages of the MQTT protocol

  • Very popular because of low complexity
  • The amount of data to be transferred is quite small, as the protocol itself is very slim

Nachteile des MQTT Protokolls

  • Since the message content is not specified, the sender and receiver must first define a notation. This requires technical knowledge and a certain amount of configuration
  • The range of functions is limited to sending and receiving data. Functions such as the transmission of buffered data after a connection failure or the routing of web pages, as available in the AnyViz protocol, are not possible

Examples of MQTT devices

Almost every IoT gateway also supports the MQTT protocol. An example is the IoT router INSYS icom MRX, which we tested for compatibility. Libraries for MQTT communication are available for many PLC platforms. Even Siemens controllers can communicate via an open source library.

Previous Post
How to operate a Raspberry Pi with CODESYS via the Cloud
Next Post
Create a connection to the cloud with OPC-UA

Latest posts

  • AnyViz Universal Cloud Adapter 2.1: Now with Lua scripting for local logic and data preprocessing
  • Universal Cloud Adapter Version 2.0 Released
  • Efficient load management and monitoring of charging stations with OCPP
  • Direct integration of LoRaWAN sensors into the AnyViz Cloud
  • SunSpec protocol for connecting inverters, meters and storage systems

Archive

  • 2025 (2)
  • 2024 (3)
  • 2023 (2)
  • 2022 (5)
  • 2021 (5)
  • 2020 (1)
  • 2019 (1)
  • 2018 (3)
  • 2017 (1)

Categories

  • Automation (15)
  • IoT Gateway (5)
  • New features (10)
  • News (1)
  • Uncategorized (1)

Mirasoft Logo

© 2025 AnyViz
Made with by Mirasoft

AnyViz

Blog
References
Online Help
Changelog
Media
Legal Information
Privacy Statement
Terms

Topics

Getting started
Connectivity
Concept
System constellations
OEM Cloud Instance
VPN Cloud Access
Features
Security

Contact

+49 (0) 9351 9793 320

info@anyviz.io

X
YouTube
LinkedIn
Xing
RSS