sparkplugbmock

command module
v0.1.1-0...-6a73861 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 12, 2021 License: GPL-3.0 Imports: 12 Imported by: 0

README

sparkplugbmock

Publish mock DDATA messages to mqtt listener:

Install

go install github.com/dubyte/sparkpbmock@latest

Binary release

Usage

# in a terminal were a mqtt server is reachable
sparkplugbmock

# in other terminal you could do one of the next ones
# The output is binary
mosquitto_sub -L mqtt://localhost:1883/spBv1.0/#

# the output is hexadecimal string
mosquitto_sub -L mqtt://localhost:1883/spBv1.0/# -F %X

# go install github.com/dubyte/sparkplugclidecoder@latest
# and you can see the values in protojson
mosquitto_sub -L mqtt://localhost:1883/spBv1.0/# -F %X | sparkplugclidecoder

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL