From b6605061ce6ae94bf74bab64dbe9db46f278af7c Mon Sep 17 00:00:00 2001 From: chakcy <947105045@qq.com> Date: Fri, 7 Aug 2026 09:39:42 +0800 Subject: [PATCH] =?UTF-8?q?modify:=20mqtt=E9=A2=9D=E5=A4=96=E4=B8=BB?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- workers/aibox_sophon_adapter/config.toml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/workers/aibox_sophon_adapter/config.toml b/workers/aibox_sophon_adapter/config.toml index 94490fb..77c0439 100644 --- a/workers/aibox_sophon_adapter/config.toml +++ b/workers/aibox_sophon_adapter/config.toml @@ -17,6 +17,17 @@ defaults = { method = "GET", timeout = 30, auth_required = false, cacheable = fa router_prefix = "/aibox_sophon_adapter" tags = ["aibox_sophon_adapter", "sophon", "adapter"] +# ====== MQTT Bridge 额外订阅主题(本插件声明,网关自动订阅并路由到本插件) ====== +# topic: 订阅主题,支持 +(单级)/ #(多级,须在末尾)通配符 +# subject: 可选,目标 Zenoh subject,支持 {1} {2}... 占位符; +# 默认 "<插件类型>." +# response_topic: 可选,响应发布主题,支持占位符;默认 "<实际匹配主题>/response" +# 请求负载同样支持 _method / _timeout / _cacheable 控制字段 +[[workers.mqtt_topics]] +topic = "/board_ping" +subject = "aibox_sophon_adapter.board_ping" +# response_topic = "/board_ping/response" # 默认即 "/board_ping/response" + # ====== Worker 运行时配置(由 lifespan_setup 传递给 create_workers) ====== [workers.config] data_dir = "./data"