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.1a1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 211717070ccf5a0dc549bc95211f099cfa0692c7b5762a450b7307d029fb0b6e |
|
MD5 | 4c5757efdf0afbb41e3f1f63602c4766 |
|
BLAKE2b-256 | 5ad5c9bc7418b70e986aa8449dec67b7b816eb9c9cc1ae3dc9b392b0584c9a18 |