Install MQTT client/server

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.