MQTT with a Raspberry Pi and an Arduino

preview_player
Показать описание

MQTT (MQ Telemetry Transport) can be used on microcontrollers like the Arduino or on boards like the Raspberry Pi. Here is a full overview and DEMO using Android, Mosquitto on Raspberry Pi, and an Arduino.




#garyexplains
Рекомендации по теме
Комментарии
Автор

OMG. Best explanation of mqtt I have seen.

jasonpluis
Автор

Yeeees. More (Node red, Grafana)
Docker explained by you would be awesome too.

minibigs
Автор

One of the most helpful videos I've ever watched thank you

Play-wz
Автор

Very good explanation on MQTT. I will try to set something here at home. Many thanks Gary

JoseFernandez-yzsf
Автор

Hello Gary, great content. I believe it is 2 roles not modes... (pub/sub). Also topics should be represented the other way around: bulbstatus/on not on/bulbstatus or should be in fact topic=bulbstatus payload=on in the form topic:payload.For mosquitto_sub the -v add the topic name back uppon change. Thumb up !!

julienbietlot
Автор

Interesting, but that's just the easy part. The objection about DHCP doesn't really stand because you will need to make a difference between the living room bulb and the one in the toilet!
Thus, it might have been interesting to detail further the kind of code you put on the Arduino to control many devices of different kinds (such as heating, fan, bulbs, mains sockets, etc.) and show how to differenciate each device at the device level. At the computer level (here Raspberry Pi, but can be anything, really), it's always simple, at the sensor level... not so.

RegisMichelLeclerc
Автор

From this video, I became known mqtt broker, Thank you Gray Explains

saynlee
Автор

*GARY!!!*
*Good Afternoon Professor!*
*Good Afternoon Fellow Classmates!*

MarkKeller
Автор

Great clip!
One question: Is the RasPi directly connected to the Arduino via WiFi or is the a Router between?
Regards
Oli

os-channel
Автор

That was great! Thanks for making this video. I can't wait to start using this in my projects!

fay
Автор

@Gary any idea if Mosquitto can be compiled to run on any of the new Arduino's?

Rocksetta
Автор

Actually, MQTT server doesn't need to have a fixed address. You can use mDNS to find the MQTT server.

For real use, you should also do encryption and use passwords.

AndersJackson
Автор

Don't hope... I DID! Enjoy it that is. Thanks so much (and where are you that it's snowing. No disrespect to the England, but snow, seriously).

ovalwingnut
Автор

Insanely cool and helpful video, thanks Grey! 👍👍

ruizheshang
Автор

Great tutorial Gary! I was able to setup my Raspberry Pi as my MQTT broker. I have one Arduino 33 iot with a door switch and another Arduino Uno WiFi with a sim7000 hat. When my door switch is open the sim sends me an sms. Awesome!
Is there an app I can install on my iPhone that I can send info back to the broker?

warrenscorner
Автор

hey why was it that the first hello message did not have any quotes wrapped around but the following messages had quotes around them

JoelJosephReji
Автор

hi,
I'm trying to configure arduino to be able to use the mqtt protocol to communicate on a web platform. Do you have any idea?

TheUncle
Автор

Neither snow nor rain nor heat nor gloom of night stays these couriers from the swift completion of their appointed rounds.

Автор

please I face a problem I don't know what is the black screen you use I tried to use visual studio but it doesn't work

nevineasfour
Автор

Very nice explanation. Thanks.

Can you please tell how data is getting transferred from Arduino to Android or Rasberry pie. I mean the physical communication media over which these topics are transferred.

ganeshshetepatil