From 68839f01cd982f03d7ff95d3180cfae8534dc3eb Mon Sep 17 00:00:00 2001 From: Tomasz Kramkowski Date: Fri, 4 Jul 2025 12:55:32 +0200 Subject: Configurable QoS --- README.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'README.md') 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 -- cgit v1.2.3-70-g09d2