NSRTW_mk4 MQTT protocol message parser
Project description
ci-msg-parser
Python library for parsing NSRTW_mk4 MQTT protocol messages.
Usage
#!/usr/bin/env python
import paho.mqtt.client as mqtt
from ci_msg_parser import *
def on_connect(client, userdata, flags, reason_code, properties):
client.subscribe("NS/NSRTW_mk4_MQTT/FW17/*")
def on_message(client, userdata, msg):
parsed = MessageParser.parse(msg.payload)
mqttc = mqtt.Client(mqtt.CallbackAPIVersion.VERSION2)
mqttc.on_connect = on_connect
mqttc.on_message = on_message
mqttc.connect("localhost", 1883, 60)
mqttc.loop_forever()
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
ci_msg_parser-0.1.0.tar.gz
(2.6 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ci_msg_parser-0.1.0.tar.gz.
File metadata
- Download URL: ci_msg_parser-0.1.0.tar.gz
- Upload date:
- Size: 2.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c16e7237e801e72eed34b15dd162dac0bfd2fcb8d52098100bb746215e6fd513
|
|
| MD5 |
3b72cebda04b2be1771f688185cf0070
|
|
| BLAKE2b-256 |
adbff19ad3dc39ce31eb3b13e6ca1accba9af7f3b2ee13fb6e4b24a625038073
|
File details
Details for the file ci_msg_parser-0.1.0-py2.py3-none-any.whl.
File metadata
- Download URL: ci_msg_parser-0.1.0-py2.py3-none-any.whl
- Upload date:
- Size: 2.3 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
40e9b4628107c4c92624809dc922258f62155b908938decfe01d7b16836eebda
|
|
| MD5 |
354ff8803862c9ad7346f4ef1d27a1e6
|
|
| BLAKE2b-256 |
b0c75a0fd36f3fb0b60267e623c74c04119b99e423a43925539aeca790a3cb50
|