MQTT recorder tool
Project description
MQTT Recorder
Simple cli tool for recording and replaying MQTT messages.
Usage
Argument | Description | Required | Default |
---|---|---|---|
-h, --help | Show help | ||
--host | MQTT broker address | x | |
--port | MQTT broker port | 1883 | |
--mode | mode: record/replay | x | |
--file | output/input csv file | x | |
--loop | looping replay | false | |
--qos | Quality of Service that will be used for subscriptions | 0 | |
--topics | json file containing selected topics for subscriptions | null |
Recording
Subscribing to every topic
mqtt-recorder --host localhost --mode record --file recording.csv
Subscribing to selected topics
mqtt-recorder --host localhost --mode record --file test.csv --topics topics.json
Topics can be selected using a json file.
Example
{
"topics": [
"/myhome/groundfloor/livingroom/temperature",
"USA/California/San Francisco/Silicon Valley"
]
}
Replaying
mqtt-recorder --host localhost --mode replay --file test.csv
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
mqtt-recorder-1.0.0.tar.gz
(3.0 kB
view details)
Built Distribution
File details
Details for the file mqtt-recorder-1.0.0.tar.gz
.
File metadata
- Download URL: mqtt-recorder-1.0.0.tar.gz
- Upload date:
- Size: 3.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.7.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4b042356f7609d2afeca03dc9ea86cfb28c945d93ca7a53f4c40c1e46585ec8b |
|
MD5 | 3cc56e8caf8de903b62a048d5cb6322b |
|
BLAKE2b-256 | ce132a13aceed9a1331b6426755f42cd38aaa256c3cdf6f6cef6a75295146130 |
File details
Details for the file mqtt_recorder-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: mqtt_recorder-1.0.0-py3-none-any.whl
- Upload date:
- Size: 4.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.7.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 62b2aea1a84600267f433c5ff4624844b28c73623ed60b47c8480af4ab5df3c6 |
|
MD5 | 0327ebc8b0a5e1ecd72835e094653b50 |
|
BLAKE2b-256 | 49de8239c92c0b0798dfb0f5b8975ac918fe9ebae46633740236af6b86431ae4 |