8 releases (stable)
1.2.1 | Mar 3, 2021 |
---|---|
1.2.0 | Feb 17, 2021 |
1.1.0 | Jan 29, 2021 |
0.1.1 | Jan 28, 2021 |
#33 in #replay
11KB
179 lines
mqtt-recorder-rs
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
Installation
Assuming Cargo installed
cargo install mqtt-recorder-rs
Recording
Example recording two specific topics to :
mqtt-recorder-rs -a localhost record -t "topic1/+/temp" -t "topic2/+/battery" -f loggfile.json
Replaying
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
Dependencies
~15–24MB
~437K SLoC