MQTT/UDP Python (3.x) implementation
You can check other languages implementations also - https://github.com/dzavalishin/mqtt_udp
Dirs
mqttudp - MQTT/UDP library in Python language
examples - Library usage examples
gate.sh - Shell script to start bidirectional MQTT/UDP to MQTT broker gateway mqttudpgate.service - Unix systemctl service definition for gateway
Examples
pub.py - Send one message
dump.py - Print all MQTT/UDP traffic listen.py - Print packets only if content is changeg
mqtt_udp_to_openhab.py - Translate all the data to OpenHAB REST API openhab_to_udp.py - Translate all the data from OpenHAB REST API (default sitemap) to MQTT/UDP
seq_storm_send.py - Send seqentially numbered packets as fast as possible seq_storm_check.py - Check packets for sequentialness and calc speed
mqtt_bidir_gate.py - Translate data between MQTT/UDP and traditional MQTT mqtt_broker_to_udp.py - One way, to MQTT/UDP mqtt_udp_to_broker.py - One way, from MQTT/UDP
random_to_udp.py - Generate traffic with random numbers
ping.py - Send ping and print replies. Not all the implementations respond to ping yet.
Possible requirements
Some code examples may require paho-mqtt and websocket-client
Usage
Send data:
import mqttudp.engine
if __name__ == "__main__":
mqttudp.engine.send_publish( "test_topic", "Hello, world!" )
Listen for data:
import mqttudp.engine
def recv_packet(ptype,topic,value,pflags,addr):
if ptype != "publish":
print( ptype + ", " + topic + "\t\t" + str(addr) )
return
print( topic+"="+value+ "\t\t" + str(addr) )
if __name__ == "__main__":
mqttudp.engine.listen(recv_packet)
Metadata
Release files for mqttudp 0.1.post1
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 |
|---|---|---|---|---|
| mqttudp-0.1.post1.tar.gz | 15.1 kB | Without provenance | Details for mqttudp-0.1.post1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| mqttudp-0.1.post1-py3-none-any.whl | Python 3 | none | any | Details for mqttudp-0.1.post1-py3-none-any.whl |
Total release size: 26.6 kB
Release files / mqttudp-0.1.post1.tar.gz
| Download URL | mqttudp-0.1.post1.tar.gz |
|---|---|
| Size | 15.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b089299e318a6ee1d02ab1f6ed72bb6dc29bc0df0a6674cd40d54bdba648ccb4
|
|
BLAKE2b-256 checksum How to use checksums |
474401f6076788d4f6d145667f54058adc114e0ddcedfbc9ae100b37a721ab53
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.5.0.1 requests/2.13.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.29.1 CPython/3.6.4
|
Release files / mqttudp-0.1.post1-py3-none-any.whl
| Download URL | mqttudp-0.1.post1-py3-none-any.whl |
|---|---|
| Size | 11.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
32028101419b4fda2c2b17357549f9880a84d84898d85e445876898d3ef388ec
|
|
BLAKE2b-256 checksum How to use checksums |
a3fd50215163dddaf15994f9e739bf1cca1cc48ae396dcab6185496eeb45dd86
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.5.0.1 requests/2.13.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.29.1 CPython/3.6.4
|
Security for mqttudp 0.1.post1
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.