MQTT recorder tool
Project description
MQTT Recorder
Simple cli tool for recording and replaying MQTT messages.
Install
pip install mqtt-recorder
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 | |
--enable_ssl | True to enable MQTTs support, False otherwise | False | |
--ca_cert | Path to the Certificate Authority certificate files | None | |
--certfile | Path to the client certificate | None | |
--keyfile | Path to the client private key | None | |
--username | MQTT broker username | None | |
--password | MQTT broker password | None |
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.1.0.tar.gz
(3.5 kB
view hashes)
Built Distribution
Close
Hashes for mqtt_recorder-1.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6b241c6bf202e060ff24782296d837dcc394d719fa065dcd20191f0e0d399898 |
|
MD5 | 8c35ab8c09284726b151dafa2f09ed10 |
|
BLAKE2b-256 | 59c5e108e5315b60b664adf0d42027f852dcd338dd2dff2ebe2d3b7d7e001fd5 |