What is MQTT and How it Works? – FAQ

What is MQTT?

The standard form of MQTT is Message Queuing Telemetry Transport protocol authored by Andy Stanford Clark. MQTT is the most commonly used OASIS standard communication protocol for small sensors, IoT devices and mobile devices in small and large scale (Internet of Things) IOT Deployments. It is a light weight publish and subscribe system because of its small code footprint where you can publish data and receive messages as a client. This protocol runs over TCP/IP. It also provides ordered, Network bandwidth-efficient, lossless and bi-directional support.

Why is MQTT used in IoT?

MQTT initially referred as “MQ Telemetry Transport” is a simple, lightweight publish / subscribe messaging protocol, designed for constrained devices with low-bandwidth. So it is perfect for internet of things applications.

Which MQTT version does MQTTRoute support?

MQTTRoute supports MQTT protocol version, 3.1 & 3.1.1.

What is an MQTT Broker?

MQTT Broker is the central server connected to the internet. MQTT devices needs the central MQTT broker to communicate each other. The MQTT Broker is primarily responsible for receiving all messages from publisher clients and publishing messages to the subscriber clients at the subscribed MQTT topic.

Why MQTT is the leading message protocol for IIoT?

MQTT is a machine to machine (M2M) data transfer protocol. The extremely lightweight overhead, publish/subscribe model, bidirectional capabilities and the tcp based connected communication are uniquely suited to meet the demands of industrial control systems. Hence it is the leading message protocol for IIoT.


MQTT is an application layer protocol built on top of the TCP protocol for data transmission. A variant, MQTT-Sn designed exclusively for edge sensor networks is over UDP.

How does MQTTRoute support scaling?

MQTTRoute is built using C at the core level which can scale up to 30 to 40,000 client connections in a single commodity server. In addition it supports proper clustering and it is designed for ambitiously big deployments. Our  IoT platform which is a complete SaaS based Framework targeting large scale multi tenancy has High availability built inside it.

What are some practical uses of MQTT protocol?
  • Monitoring production in manufacturing Industry.
  • Automated Metering in Energy Industries.
  • Location awareness and safety.
How does a MQTT Broker work?

Like any other internet protocol, MQTT is based on clients and server. The broker handles the MQTT client’s requests of receiving or sending data between each other. The clients that connects to the broker are publishing & subscribing to topics. The broker handles publishing / subscribing actions to the target topics.

Can MQTT Brokers be meshed?

Inter broker links are not a part of official mqtt spec, so they can be meshed with any protocol.

How MQTT is better than other Protocols ?

MQTT is easy of use and it  is essential when response time, throughput, lower battery and bandwidth usage are on the first place for future solutions. Though HTTP is worthy and extendable, MQTT is more suitable in case of IoT development.

Is MQTT Secure ? How secure is your MQTT Broker ?

MQTT spec defines security with TLS and the MQTT authentication. MQTT Broker defines the access levels over the authentication. Bevywise MQTT Broker has the most powerful and flexible security options. It works with all standard SSL / TLS certificate for secure data flow. It provides option to create individual and highly secure authentication keys for each devices.

How does MQTT Broker stores data ?

MQTT Broker stores the data into database. Most MQTT Brokers don’t provide any built-in mechanism to save MQTT data into database. But MQTTRoute stores stateful data in MySQL & payloads in Elastic search by default.

Is it possible to customize Storage of the device data behind MQTT Broker ?

Yes. MQTTRoute provides option to store the data in any of your analytics / Big data engines such as MySQL, SQLite, MS SQL, Elastic searchMongoDBRedis through custom storage module.

How to visualize MQTT Data ?

MQTT data can be visualized by sending the data to the data visualization tool. MQTTRoute stores data to any analytics / big data engine via custom implementation for better data visualization. MQTT Broker Tableau integration will help you store all your data in the format you needed into the Tableau for a perfect data analysis.

Will it be possible to customize widgets based on the data?

Yes. MQTTRoute provides customizable user interface to display your data as required for your use case. You can add your own widgets to the user interface based on the data. 

Why MQTTRoute is the best MQTT broker service for IoT?

MQTTRoute is the light weight middle ware which is perfect for IoT application. It works with all standard MQTT clients and at the same time it can be customized to store data to any back end big data engine or application. It has a ready to use connectors to customize.

Is the Bevywise MQTT Broker can be hosted on cloud?

Yes. Broker can be hosted on any private network or any cloud servers like Amazon EC2, Microsoft AzureGCP, Rackspace or digitalocean.

How to install MQTT Broker in windows ?

MQTT Broker supports windows versions such as Windows 7, Windows 8, 8.1 & Windows 10 & Windows Server 2012 & 2016. To install Bevywise MQTT Broker in windows read help.

Why can't I run MQTT Broker in windows? Got the below mentioned error.

C:\Program Files\Bevywise\MQTTRoute\bin>runbroker.bat

[MQTTROUTE]19:05:2021 12:25:43 – Bevywise MQTTRoute 3.2 – build 0421-029

Traceback (most recent call last):

File “Broker.py”, line 3, in <module>





File “logging_init.py”, line 1008, in init

File “logging_init_.py”, line 1037, in _open

PermissionError: [Errno 13] Permission denied: ‘C:\\Program Files\\Bevywise\\MQTTRoute\\bin\\broker.log’

[8712] Failed to execute script Broker

If you get above mentioned error, run the MQTT Broker as administrator in windows.

How to install MQTT Broker in Ubuntu ?

MQTT Broker supports Linux. To install Bevywise MQTT Broker in ubuntu read help.

How to configure MQTT Broker ?

The MQTTRoute can be configured using the broker.conf file inside the conf folder. For more details read help.

How to start MQTT Broker as a service ?

Using Task Scheduler, you can run Broker as a service to achieve 99.99% uptime. To start MQTT Broker as a service read help

Can I run MQTTRoute using Docker or Kubernettes ?

Yes. MQTTRoute can be dockerized and easily managed. You can run it as an independent docker or can be controlled via kubernettes alone with your other applications as needed.

Download Bevywise MQTT Broker for free