Sommaire:
- infos générales Journal de manip
- Description
- Composants
- Computer Vision
- Cookbook
- Culture Générale / Connaissances insolites
- DataBase
- Développement, Gestion et Commercialisation de projet
- Diagrams
- Docker
- Documentation_Automatique
- ESP8266 & ESP32
- Freecad
- GIT (versioning)
- Golang
- HPVC
- IDE & Text Editor
- Informatique
- Kicad
- LINUX
- MAC OS
- Machine Learning
- MQTT
- Musique
- Optimisation du travail (et de l’apprentissage)
- PowerShell
- PYTHON
- Regex
- Reseau
- Soudure
- Technos Web
- Trading
- URLtheque
- XML_JSON
- Arborescence du projet
MQTT¶
Installation¶
Windows¶
- Liens_WEB:
Download mosquitto https://mosquitto.org/download/ prendre la version light 32 bits
Download openssl http://slproweb.com/products/Win32Ope prendre la version 32 bits
Download de la DLL “ssleay32.dll” http://www.telecharger-dll.fr/dll-ssleay32.dll.html
Download de la DLL “libeay32.dll” http://www.telecharger-dll.fr/dll-libeay32.dll.html
Copier les 2 DLL dans le dossier “bin” d’openssl
Copy openssl32bin folder to mosquitto C:opensslbin — C:Program Files(x86)mosquitto
Copy required dll files C:openssllibeay32.dll — C:Program Files(x86)mosquitto
Copy required dll files C:opensslssleay32.dll — C:Program Files(x86)mosquitto
Download pthreadVC2.dll ftp://sources.redhat.com/pub/pthreads-win32/dll-latest/dll/x86/
Copy pthreadVC2.dll file C:DownloadspthreadVC2.dll — C:Program Files(x86)mosquitto
Test subscriber / server mosquitto_sub -v -t “home/light”
Test publisher / client mosquitto_pub -t “home/light” -m “Turn ON”
Test2 publisher / client mosquitto_pub -t “home/light” -m “Turn OFF”
MQTT sous Python¶
Création de l’environnement virtuel
mkdir MQTT_env cd MQTT_env python -m venv .Installation des dépendances
script\activate.bat pip install paho-mqtt==1.3.1