Buy from US Buy from UK Buy from DE Buy from IT Buy from FR Buy from ES ここでご購入を!

Introduction

In order to make better use of nodemcu to complete more interesting IOT project,we will learn what is MQTT and what is the psbcubclient in this lesson.For those who already familiar with MQTT / Pubsubclient can skip following peragraph,for biginers read for these introduction.

What is MQTT protocol?

MQTT is a machine-to-machine (M2M)/”Internet of Things” connectivity protocol. It was designed as an extremely lightweight publish/subscribe messaging transport.In a simple language when you want to communicate to your controller through mobile or a web browser you need a communication protocol and MQTT does that magic.MQTT is a message queuing telemetry transport. It is specifically designed for automation.

MQTT works on publish subscribe events. It requires MQTT broker in between. It is very vast subject. To learn more about MQTT visit MQTT.org/MQTT Wiki.

Introduction

The MQTT Protocol

Developing Applications

Documentation & Reference

Some links to articles and tutorials can be found via the legacy Documentation page. — FIXME these should move into the [technical articles](technical articles) and [blog posts](blog posts) pages

The legacy Frequently Asked Questions page also has some useful material if you are getting started. — FIXME these should be migrated into the questions page

What is pubsubclient?

It is a library provides a client for doing simple publish/subscribe messaging with a server that supports MQTT.

Limitations

Download

The latest version of the library can be downloaded from GitHub.

Documentation

The library comes with a number of example sketches. See File > Examples > PubSubClient within the Arduino application.

Full API Documentation

Compatible Hardware

The library uses the Ethernet Client for Arduino api for interacting with the underlying network hardware. This means it Just Works with a growing number of boards and shields, including:

Author
Nick O’Leary – @knolleary
License
This library is released under the MIT License.