mqtt-recorder-rs

Crates.iomqtt-recorder-rs
lib.rsmqtt-recorder-rs
version1.2.1
sourcesrc
created_at2021-01-28 18:24:10.126594
updated_at2021-03-03 13:53:24.379582
descriptionSimple MQTT logger
homepage
repositoryhttps://github.com/TotalKrill/mqtt-recorder-rs
max_upload_size
id347720
size31,714
(TotalKrill)

documentation

README

mqtt-recorder-rs

Latest version License

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
Commit count: 31

cargo fmt