diff options
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 |