aboutsummaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
authorTomasz Kramkowski <tomasz@kramkow.ski>2025-07-04 12:55:32 +0200
committerTomasz Kramkowski <tomasz@kramkow.ski>2025-07-04 12:55:32 +0200
commit68839f01cd982f03d7ff95d3180cfae8534dc3eb (patch)
treee6220aa6035cdbf13905d4f479cdd07d700b3dc1 /README.md
parentce71a662f977c9dd3790c62620ebd0568276b05f (diff)
downloadmqttr-68839f01cd982f03d7ff95d3180cfae8534dc3eb.tar.gz
mqttr-68839f01cd982f03d7ff95d3180cfae8534dc3eb.tar.xz
mqttr-68839f01cd982f03d7ff95d3180cfae8534dc3eb.zip
Configurable QoS
Diffstat (limited to 'README.md')
-rw-r--r--README.md8
1 files changed, 6 insertions, 2 deletions
diff --git a/README.md b/README.md
index 7529a82..fb03266 100644
--- a/README.md
+++ b/README.md
@@ -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