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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for mqttdebug_tspspi-0.0.1a2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 182d8e0e940aa386849ebed55def28c10a579397e4fa385ac0b0c25ac66850ee |
|
MD5 | 6e87a8985238fb9256d2b98e469990b2 |
|
BLAKE2b-256 | 68f1c8a9ce373e0f7627ff8218ca4602437615bec48d2ac53210e4b272b9d14e |