Skip to main content

A simple MQTT debugging utility that allows subscribing to an arbitrary number of topics / publishing messages from the CLI

Project description

Simple MQTT debug helper

This is a simple tool that allows subscribing to an arbitrary number of MQTT topics as well as publishing to an MQTT broker using a command line utility.

Example usage

Configuration file

The configuration file that's sourced by both tools is supplied in JSON format:

{
	"broker" : {
		"broker" : "example.com",
		"port" : 1883
	},
	"auth" : {
		"user" : "exampleuser",
		"password" : "examplepassword"
	}
}

Subscribing to all topics

Dumping as plain text:

$ mqttsubscribe --cfg /path/to/configfile --topic "#"

Dumping as JSON:

$ mqttsubscribe --cfg /path/to/configfile --topic "#" --json

Subscribing to specific topics

$ mqttsubscribe --cfg /path/to/configfile --topic "quakesr/experiment/camera/ebeam/raw/stored" --json

Publishing a message from the CLI

$ mqttpublish --cfg /path/to/configfile --topic "examples/testtopic" --payload "Test payload"

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

mqttdebug-tspspi-0.0.1a1.tar.gz (4.6 kB view hashes)

Uploaded Source

Built Distribution

mqttdebug_tspspi-0.0.1a1-py3-none-any.whl (6.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page