From 847cfa692b20903a8c6a43c01948ded6db0035a7 Mon Sep 17 00:00:00 2001 From: Tomasz Kramkowski Date: Sun, 20 Jul 2025 12:31:13 +0100 Subject: Non-UTF8 path/argument support --- README.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index f18d485..910fe66 100644 --- a/README.md +++ b/README.md @@ -58,10 +58,13 @@ The routes follow the following format: ] "foo/bar/baz" = { qos = "at-least-once", # Subscription QoS - programs = [["/foo"], ["/bar"]] + programs = [["/foo"], ["/bar"], [{b64 = "L3NpbGx5/3BhdGg="}, "normal-arg"]] } ``` +Note: If your program path or one of its arguments contains invalid UTF8, you +can use a `{ b64 = "BaSe64==" }` in place of the argument. + On startup, `mqttr` will read the config file and subscribe to all the topics. When a message is received, `mqttr` will match the message topic against the routes and execute every program which is part of a matching route. Each program @@ -88,7 +91,6 @@ it being ran every time a new MQTT message is published to this topic. ## Missing Features -* Ability to configure programs with non-UTF-8 in paths * TLS * mTLS * Graceful signal handling -- cgit v1.2.3-70-g09d2