#pymqttusb
Permet la connexion d'un microprocesseur branché sur un port usb vers un serveur MQTT.
Un fichier json de configuration "arduino_mqtt_data.json" doit être présent dans le répertoire.
Contenu du fichier "arduino_mqtt_data.json" :
{
"broker_url":"url_de_votre_broker_mqtt",
"broker_protocol_mqtt_mqtts_ws_wss":"wss",
"broker_port":443,
"salle":"maSalle",
"KEY":"bureau/lumiere1"
}
-----------
Le topic de réception sera : salle/KEY/out
Le topic d'envoi sera : salle/KEY/in
Les protocoles possibles sont "wss" websockets sécurisés avec login et mot de passe ( pas de certificat)
ou "tcp" pour ssl avec login et mot de passe ( pas de certificats client)
Lancement du programme :
En indiquant le nom du port usb (vitesse par défaut 9600 bauds)
py -m pymqttusb.main com8 <br />
En modifiant la vitesse de communication par défaut du port série :
py -m pymqttusb.main com8 57600<br />
Metadata
Release files for pymqttusb 1.1.8
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pymqttusb-1.1.8.tar.gz | 4.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pymqttusb-1.1.8-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 9.3 kB
Release files / pymqttusb-1.1.8.tar.gz
| Download URL | pymqttusb-1.1.8.tar.gz |
|---|---|
| Size | 4.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
27e04f4044ce4ee35117b23f3681fafe164c7f3cdb8903948704fcae2a61d50f
|
|
BLAKE2b-256 checksum How to use checksums |
2120170a54e21e67f687e1903107b78e7d57330121a3893592a2a4fac2fbb178
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.2
|
Release files / pymqttusb-1.1.8-py3-none-any.whl
| Download URL | pymqttusb-1.1.8-py3-none-any.whl |
|---|---|
| Size | 4.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
52f022f2375c65e2ebf76586ab81f8e46f7a5d6bdc55b7dc670e3c390742064b
|
|
BLAKE2b-256 checksum How to use checksums |
bdbb059143ef20232dda815e746324a424ada0e01e23095e593415664267ea1d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.2
|