MQTT Official Introduction
MQTT is a machine-to-machine (ATM)/"Internet of Things" connectivity protocol. It is designed as an extremely lightweight publish/subscribe messaging transport. It is useful-connections with remote locations where a small code footprint is required and/or network bandwidth are at A premium. For example, it had 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
Server/Client Selection
In the MQTT website, http://mqtt.org/software lists the open source client and server projects and libraries that implement the Protocol. According to the richness of the online information, I chose Mosquitto as my Learning tool.
Mosquitto Introduction
Mosquitto is a Open Source MQTT server with C, C + +, Python. For JavaScript, Mosquitto recommends the Eclipse Paho JavaScript client. A public, hosted test server is also available
Mosquitto installation Configuration
Install the necessary libraries and toolkits
sudo DNF Groupinstall "Development tools"
sudo DNF Groupinstall "Development Libraries"
sudo DNF install CMake gcc-c++ openssl-devel
Download the source code package, as of December 2015, the latest version is mosquitto-1.4.5
Extract
Tar zxfv mosquitto-1.4.5.tar.gz
Go to Catalog
CD mosquitto-1.4.5
Configuration
CMake.
Compile
Make
Installation
sudo make install
Install MQTT client/server