mqtt - mosquitto.conf:带空格的桥接主题名称
问题描述
我需要将给定的托皮斯从一只蚊子连接到另一只蚊子。问题是主题中有空格:
/sensors/DS 1
/sensors/DS 2
/sensors/..
/sensors/DS 32
我正在寻找一种解决方案,如何仅配置我需要的几个主题:
# /etc/mosquitto/conf.d/bridge.conf
# ...
# This works fine but produces unwanted traffic:
topic /sensors/# out 1
# This all doen't work:
topic /sensors/DS\ 4 out 1
topic '/sensors/DS 4' out 1
topic "/sensors/DS 4" out 1
无论如何,我正在赶上Error: Invalid bridge topic direction '4'.
有可能解决这个问题吗?
mosquitto version 1.4.15 (build date Thu, 07 Jun 2018 19:59:46 +0300)
已创建UPD错误报告:https ://github.com/eclipse/mosquitto/issues/1756
解决方案
推荐阅读
- opencv - 在易受攻击的图像 OpenCV Python 上过滤噪声
- python - 使用“:”将伪代码翻译成python
- javascript - 使用 javascript 在真假之间切换 aria-expanded
- python - 使用 python 仅打印一个 json 键响应的值
- python - 为什么在 Windows 上合并 python 中的文件很慢?
- pandas - GroupBy 两个 DataFrame 的不同列之间的公共值
- python-3.x - 转移文本文件所有权python
- python - 如何在python数据框中将一行转换为带有条件的维度
- ios - SwiftUI Textfiled Binding 在 iOS 15 中触发 2 次
- r - pryr::object_size() 嵌套在小标题和/或数据帧中是否表现不佳?