What is MQTT and How It Works

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
in this video I'm going to introduce you to the MQTT protocol MQTT stands for mq telemetry transport it is a nice lightweight publish and subscribe system where you can publish and receive messages as a client and it makes it really easy to establish a communication between multiple devices it is a simple messaging protocol designed for 10 strain devices and with low bandwidth so it's the perfect solution for Internet of Things applications here's a quick high-level overview of what mqtt allows you to do you can send a command to control an output or you can read that from a sensor and publish it in MQTT there are a few basic concepts that you need to understand publish and subscribe messages topics broker the first concept is the publish and subscribe system what does that mean this means that the device can publish messages to your other devices or your device can subscribe to a particular topic to receive those messages for example device 1 publishes on a topic device 2 is subscribed to the same topic as device 1 is publishing in so device 2 receives the message messages are the information that you want to exchange between your devices whether it's a command or data with the publish/subscribe system you can do pretty much anything you could ever want it in your own mode mission projects another important concept is topics topics are the way you register interest for incoming messages or I will specify where you want to publish your message topics are represented with strings separated by slashes the slashes indicate the topic level here is an example R now you would create a topic for a lamp in your own office home / office / lamp for example if you'd like to turn on a lamp in your home office you would publish a message to a topic using no thread saying on and your esp8266 would be subscribed to that same topic so it will receive the own message and finally turn on the lamp [Music] please note that topics are case-sensitive which makes these topics different you also need to be aware of the term broker the broker is primarily responsible for receiving all messages filtering the messages decide who's interested in it and then publishing the message to all subscribed clients there are several brokers you can use we're going to use the mosquito broker which you will install in the raspberry pi in the next units we will experiment with MQTT and node-red to see how everything works in reality with practical examples thank you for watching
Info
Channel: Rui Santos
Views: 485,227
Rating: undefined out of 5
Keywords: rui santos, randomnerdtutorials, random nerd tutorials, What is MQTT, MQTT How it works, mqtt explained, mqtt esp8266 raspberry pi internet of things, mqtt tutorial internet of things, mqtt example project iot
Id: EIxdz-2rhLs
Channel Id: undefined
Length: 4min 4sec (244 seconds)
Published: Wed Jan 11 2017
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.