Skip to main content

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 hashes)

Uploaded Source

Built Distribution

mqtt_recorder-1.0.0-py3-none-any.whl (4.0 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page