Skip to main content

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)

Uploaded Source

Built Distribution

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

ci_msg_parser-0.1.0-py2.py3-none-any.whl (2.3 kB view details)

Uploaded Python 2Python 3

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

Hashes for ci_msg_parser-0.1.0.tar.gz
Algorithm Hash digest
SHA256 c16e7237e801e72eed34b15dd162dac0bfd2fcb8d52098100bb746215e6fd513
MD5 3b72cebda04b2be1771f688185cf0070
BLAKE2b-256 adbff19ad3dc39ce31eb3b13e6ca1accba9af7f3b2ee13fb6e4b24a625038073

See more details on using hashes here.

File details

Details for the file ci_msg_parser-0.1.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for ci_msg_parser-0.1.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 40e9b4628107c4c92624809dc922258f62155b908938decfe01d7b16836eebda
MD5 354ff8803862c9ad7346f4ef1d27a1e6
BLAKE2b-256 b0c75a0fd36f3fb0b60267e623c74c04119b99e423a43925539aeca790a3cb50

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