Has a guide been produced on how to set up mqtt on a RPi. Ii have used the guides for Pico but not sure how to do it on a Pi 4.
Thanks
Toni
Hey Toni,
We absolutely have a guide for starting MQTT with the Pi.
Check it out via This Link.
Cheers,
Blayden
Why did I doubt it🥺
Many thanks
Toni
Hey Toni,
Nothing wrong with being a bit sceptical, always best to ask questions.
Hope the Guide gets you on the right track and ask away if there’s anything further you need help with.
Cheers,
Blayden
Unfortunately that guide is hopelessly out of date and WON’T work with any Pi using python3.11.
The very first line would generate error messages.
Even for earlier python is is poor practice to use pip to install packages which are available in apt
e.g. python3-paho-mqtt
Hey @Toni135859 & @Ian38390,
Thanks for your help Ian, that guide is quite old. Most of the concepts will function similarly but a newer version would be ideal. We’ll have a look at releasing an updated guide for MQTT on Pi4/5 at some point.
For now, @Toni135859, this guide should do the trick.
Re: Ian’s comments on pip vs apt, it is likely that the available MQTT version on pip was newer, or simply that it wasn’t desired system-wide. The above guide uses apt for mosquitto dependencies and to install python3-pip, but still utilises pip3 to install paho-mqtt.
Let us know if you run into trouble, we’re happy to help out!
Thanks guys, I’ll give that a try when I get back (would you believe, from Newcastle!) next week.
Cheers
Toni
You can see this video regarding using Raspberry Pi4 as MQTT Server. https://www.youtube.com/watch?v=BFyPzC6No8k By any chance, if you ever think about switching to ESP32 for MQTT, you can get the guidelines from here: ESP32 MQTT - The Engineering Projects
What an excellent and succinct guide. I’ve definitely used this channel when I’ve run into issues with other dev boards before.