This is VERY informative! I'm glad you spent the time to put this together and share it with everyone. I am just now really getting into MCU projects with RaspberryPi (RPi), NodeMCUs, other ESP8266 based MCUs, components (relays, temp sensors, etc) as well as working on a LAN centric management system. I had been considering setting up a DB server and coding my devices to update/get data via the DB - but then, in the process of doing an install on a RPi of openHAB, I started seeing more about MQTT and mosquitto. I'm glad I looked into this and am getting such a great introduction to the MQTT server/protocol (as well as so many related resources) instead of spending time re-inventing the wheel! I hope you get more views, likes, and subscriptions - this/you are a great resource!
Thanks for making this video, it was very well put together and easy to follow along especially for someone who just started looking into MQTT yesterday
MQTT has a broker or server, and clients. Assuming the MQTT broker, or server is on your Raspberry Pi (the mosquitto broker), and you have programs that are sending data to the MQTT broker (such as a temperature data for example) then you do need some sort of MQTT program (or client) on your computer to get that data. An example: On the Pi: - a python script reads data from a temperature sender and publishes an MQTT message to the broker (also on the pi) On your computer: - you can run an MQTT client ( such as windows MQTTbox ) and subscribe to that temperature data to see the live updates on your PC You could also run a python script on your PC that subscribes to the MQTT data too So yes, anywhere you want to receive the MQTT messages (data) you need to run a MQTT client. That client can be a program you download and run, or it can be a python, C++, etc program you write that knows how to communicate with the MQTT broker.
It's called "Mosquitto" because of M o s Q u i T T o Wanted to add - great video. This is a field I'm just getting my head around, so thanks for taking the time to explain things in an understandable way.
This is VERY informative! I'm glad you spent the time to put this together and share it with everyone. I am just now really getting into MCU projects with RaspberryPi (RPi), NodeMCUs, other ESP8266 based MCUs, components (relays, temp sensors, etc) as well as working on a LAN centric management system. I had been considering setting up a DB server and coding my devices to update/get data via the DB - but then, in the process of doing an install on a RPi of openHAB, I started seeing more about MQTT and mosquitto. I'm glad I looked into this and am getting such a great introduction to the MQTT server/protocol (as well as so many related resources) instead of spending time re-inventing the wheel! I hope you get more views, likes, and subscriptions - this/you are a great resource!
Thanks for making this video, it was very well put together and easy to follow along especially for someone who just started looking into MQTT yesterday
So do I have to run MQTT on my computer to get the information from my raspberry pi server?
MQTT has a broker or server, and clients. Assuming the MQTT broker, or server is on your Raspberry Pi (the mosquitto broker), and you have programs that are sending data to the MQTT broker (such as a temperature data for example) then you do need some sort of MQTT program (or client) on your computer to get that data.
An example:
On the Pi:
- a python script reads data from a temperature sender and publishes an MQTT message to the broker (also on the pi)
On your computer:
- you can run an MQTT client ( such as windows MQTTbox ) and subscribe to that temperature data to see the live updates on your PC
You could also run a python script on your PC that subscribes to the MQTT data too
So yes, anywhere you want to receive the MQTT messages (data) you need to run a MQTT client. That client can be a program you download and run, or it can be a python, C++, etc program you write that knows how to communicate with the MQTT broker.
Thank you very much. That was an excellent demo. I have recently jumped into this field and I hope to watch more videos from you.
Very informative and clearly presented. Thanks You!
Thank you very much for your video. Really help me to initiate in the matter of communication between devices. It was clear and very well explained
It's called "Mosquitto" because of
M o s Q u i T T o
Wanted to add - great video.
This is a field I'm just getting my head around, so thanks for taking the time to explain things in an understandable way.