Embedded Hobbyist

Message Queue Telemetry Transport

Submitted by Admin on

MQTT is a machine-to-machine (M2M)/"Internet of Things" connectivity protocol. It was designed as an extremely lightweight publish/subscribe messaging transport. It is useful for connections with remote locations where a small code footprint is required and/or network bandwidth is at a premium. For example, it has been used in sensors communicating to a broker via satellite link, over occasional dial-up connections with healthcare providers, and in a range of home automation and small device scenarios. It is also ideal for mobile applications because of its small size, low power usage, minimised data packets, and efficient distribution of information to one or many receivers.

MQTT was originally invented and developed by IBM in the late 1990's. Its original application was to link sensors on oil pipelines with satellites.

Mosquitto is an Open Source MQTT Message Broker (Serve)r written in C++ created and provided by the Eclipse Foundation.

They also have provided C libraries for MQTT Clients and the very popular mosquitto_pub and mosquitto_sub command line MQTT clients.

Setting up Mosquitto on Raspberry Pi