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
File details
Details for the file mqttdebug_tspspi-0.0.1a2.tar.gz
.
File metadata
- Download URL: mqttdebug_tspspi-0.0.1a2.tar.gz
- Upload date:
- Size: 4.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.8.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 08e0d7f6529cbaa38037dd5758e5fbc55b5387c96f50b051b83164c353929c66 |
|
MD5 | 8c5fecd2c6dca64a32bdd73a0e9f972f |
|
BLAKE2b-256 | 289fe2816d17b465ec96bdc4a1f128309e4e50cd4193b767d8cffcdba1b5408a |
File details
Details for the file mqttdebug_tspspi-0.0.1a2-py3-none-any.whl
.
File metadata
- Download URL: mqttdebug_tspspi-0.0.1a2-py3-none-any.whl
- Upload date:
- Size: 6.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.8.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 182d8e0e940aa386849ebed55def28c10a579397e4fa385ac0b0c25ac66850ee |
|
MD5 | 6e87a8985238fb9256d2b98e469990b2 |
|
BLAKE2b-256 | 68f1c8a9ce373e0f7627ff8218ca4602437615bec48d2ac53210e4b272b9d14e |