| Crates.io | mqtt-recorder-rs |
| lib.rs | mqtt-recorder-rs |
| version | 1.2.1 |
| created_at | 2021-01-28 18:24:10.126594+00 |
| updated_at | 2021-03-03 13:53:24.379582+00 |
| description | Simple MQTT logger |
| homepage | |
| repository | https://github.com/TotalKrill/mqtt-recorder-rs |
| max_upload_size | |
| id | 347720 |
| size | 31,714 |
Quickly written mqtt logger and replay tool written in rust.
Stores each subscribed value in a json object consisting of a line. Each line is an MQTT publish. The replay function can use this to replay the contents over an MQTT broker
Assuming Cargo installed
cargo install mqtt-recorder-rs
Example recording two specific topics to :
mqtt-recorder-rs -a localhost record -t "topic1/+/temp" -t "topic2/+/battery" -f loggfile.json
Example replaying the values at normal speed, restaring and looping the replayed values constantly
mqtt-recorder-rs -a localhost replay -f loggifle.json --loop true --speed 1.0