diff options
author | Tomasz Kramkowski <tomasz@kramkow.ski> | 2025-07-04 12:55:32 +0200 |
---|---|---|
committer | Tomasz Kramkowski <tomasz@kramkow.ski> | 2025-07-04 12:55:32 +0200 |
commit | 68839f01cd982f03d7ff95d3180cfae8534dc3eb (patch) | |
tree | e6220aa6035cdbf13905d4f479cdd07d700b3dc1 /README.md | |
parent | ce71a662f977c9dd3790c62620ebd0568276b05f (diff) | |
download | mqttr-68839f01cd982f03d7ff95d3180cfae8534dc3eb.tar.gz mqttr-68839f01cd982f03d7ff95d3180cfae8534dc3eb.tar.xz mqttr-68839f01cd982f03d7ff95d3180cfae8534dc3eb.zip |
Configurable QoS
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -35,6 +35,8 @@ minimum a set of routes. The following is the default configuration: ```toml host = "localhost" # MQTT server host port = 1883 # MQTT server port +qos = "exactly-once" # Default subscription QoS + # at-least-once (=0), at-most-once (=1), exactly-once (=2) # [credentials] # Uncomment to specify MQTT connection credentials # username = "username" # password = "password" @@ -49,7 +51,10 @@ The routes follow the following format: ["/path/to/program"], ["/path/to/another/program", "with", "args"], ] -"foo/bar/baz" = [ ... ] +"foo/bar/baz" = { + qos = "at-least-once", # Subscription QoS + programs = [["/foo"], ["/bar"]] +} ``` On startup, `mqttr` will read the config file and subscribe to all the topics. @@ -79,7 +84,6 @@ it being ran every time a new MQTT message is published to this topic. ## Missing Features * Configurable timeouts (eventually configurable per process) -* Configurable QoS for each subscription (default is 2 (exactly once)) * Configurable logging * Ability to configure programs with non-UTF-8 in paths * Maybe config reloading on SIGHUP |