Skip to main content

Connexion USB <-> MQTT ssl ou wss

Project description

#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 />

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pymqttusb-1.1.8.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pymqttusb-1.1.8-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

Details for the file pymqttusb-1.1.8.tar.gz.

File metadata

  • Download URL: pymqttusb-1.1.8.tar.gz
  • Upload date:
  • Size: 4.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.2

File hashes

Hashes for pymqttusb-1.1.8.tar.gz
Algorithm Hash digest
SHA256 27e04f4044ce4ee35117b23f3681fafe164c7f3cdb8903948704fcae2a61d50f
MD5 b19c7d2a0217b7d9c3b792e3fd18e566
BLAKE2b-256 2120170a54e21e67f687e1903107b78e7d57330121a3893592a2a4fac2fbb178

See more details on using hashes here.

File details

Details for the file pymqttusb-1.1.8-py3-none-any.whl.

File metadata

  • Download URL: pymqttusb-1.1.8-py3-none-any.whl
  • Upload date:
  • Size: 4.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.2

File hashes

Hashes for pymqttusb-1.1.8-py3-none-any.whl
Algorithm Hash digest
SHA256 52f022f2375c65e2ebf76586ab81f8e46f7a5d6bdc55b7dc670e3c390742064b
MD5 ab96ce4aeca124120d14955d9597e201
BLAKE2b-256 bdbb059143ef20232dda815e746324a424ada0e01e23095e593415664267ea1d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page