asgimqtt
asgimqtt is a simple MQTT interface for ASGI.
Usage
Connect the server to a running MQTT broker:
asgimqtt --host localhost --port 1883 django_project.asgi:channel_layer
In your Django code:
# routing.py
channels_routing = [
route("mqtt.sub", mqtt_consumer),
]
Note: you can only receive messages published in MQTT broker (channel mqtt.sub).
The keys are:
host: host of the MQTT broker
port: port of the MQTT broker
topic: topic of the MQTT message
payload: payload of the MQTT message
qos: quality of service of the MQTT message (0, 1 or 2)
Metadata
Release files for asgimqtt 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| asgimqtt-0.2.0.tar.gz | 3.3 kB | Without provenance | Details for asgimqtt-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| asgimqtt-0.2.0-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details for asgimqtt-0.2.0-py2.py3-none-any.whl |
Total release size: 8.6 kB
Release files / asgimqtt-0.2.0.tar.gz
| Download URL | asgimqtt-0.2.0.tar.gz |
|---|---|
| Size | 3.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1f6d9c56882f18e23bac7369881ad3dbcb5d7064e04a2868022dc4cfae4b8cfc
|
|
BLAKE2b-256 checksum How to use checksums |
5d54d860044e3e104aacd8ea43de5400f1064269bf58540fcf3bf532153d10b5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / asgimqtt-0.2.0-py2.py3-none-any.whl
| Download URL | asgimqtt-0.2.0-py2.py3-none-any.whl |
|---|---|
| Size | 5.3 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
8be9ee5e422b74e9842747ba0944c18ae8ff4cb9586c78bbc45b3c54baf1b0e7
|
|
BLAKE2b-256 checksum How to use checksums |
38174396c47064df5d99b6a3cc64f250b270d1e5d114d51ff3e4976f17824441
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for asgimqtt 0.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.