Skip to main content

#pytcpmqtt

Permet la connexion d'un microprocesseur fonctionnant en serveur TCP sur un réseau local vers un serveur MQTT.

Un fichier json de configuration "tcp_mqtt_data.json" doit être présent dans le répertoire :

Contenu du fichier "tcp_mqtt_data.json" :

{
"tcp_host":"192.168.1.26",
"tcp_port":92,
"broker_url":"url_de_votre_broker_mqtt",
"broker_protocol_mqtt_mqtts_ws_wss":"tcp",
"broker_port":8443,
"date_heure":true,
"salle":"maSalle",
"KEY":"bureau/lumiere1"
}


Le topic de réception sera : salle/KEY/out

Le topic d'envoi sera : salle/KEY/in

Si date_heure" : true alors ajoute de la date et l'heure dans le json , si non mettre à : false

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 certificat client)

Lancement du programme :

py -m pytcpmqtt.main 
(ou sur raspberry python3 -m pytcpmqtt.main)

Metadata

Release files for pytcpmqtt 1.3.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pytcpmqtt 1.3.1
File Size Uploaded
pytcpmqtt-1.3.1.tar.gz 5.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pytcpmqtt 1.3.1
File Interpreter ABI Platform
pytcpmqtt-1.3.1-py3-none-any.whl Python 3 none any Details

Total release size: 11.8 kB

Release files / pytcpmqtt-1.3.1.tar.gz

Download URL pytcpmqtt-1.3.1.tar.gz
Size 5.8 kB
Tags Source
SHA-256 checksum
How to use checksums
afe7dccf410e5718ea0a7d3df22d3aa8fed11a338e2de92554b75079fef53a47
BLAKE2b-256 checksum
How to use checksums
492af9362bc8a056e07be2ac446deb770a8ac279c5548cd32f83bc8577536a14
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.0 importlib_metadata/3.7.3 packaging/20.8 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.1

Release files / pytcpmqtt-1.3.1-py3-none-any.whl

Download URL pytcpmqtt-1.3.1-py3-none-any.whl
Size 6.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8749a2b1f88457fe31f6ddc02154fd0b9bc2a5bcf523b2e27a7ea2c22eaf6f94
BLAKE2b-256 checksum
How to use checksums
b2d342b7aa97f8a9e7dea6168915a80d99bb4ab7601fe866d8ac3ed7c179dc7f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.0 importlib_metadata/3.7.3 packaging/20.8 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.1

Release history Release notifications | RSS feed

This release

1.3.1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page