DirkS wrote: ↑
Wed Jan 16, 2019 9:41 pm
bensimmo wrote: ↑
Wed Jan 16, 2019 8:14 pm
sudo pip3 install paho-mqtt
For Python3 since it's 2019
That doesn't install mosquitto, just the Python module to send / receive MQTT messages.
Has been like that for several years and still the case in 2019...
And the title of the topic is MQTT and Python and it is in the Python section
That'll be the bit not working
In Jessie in years gone by you could install
With stretch it vanished as far as I know, so apt doesn't have it.
With Buster+ it'll be back again but as
from what I can see.
If you look through the link that was being followed every method including apt for installing the client is there, that will.have worked.
The only part that isn't is using pip3 to get MQTT for Python3, something that's needed on the Pi.
It'll probably be working if the instructions were followed and Python2* was being used.
At least that was my take on it, hence no comment on the apt or apt-get part.
But Matt's put the full method
* It's 2019 so we don't want to be using that.