索取所有已发布的主题 [英] Request all published topics
问题描述
我正在为我的MQTT经纪人使用蚊子.
I'm using Mosquitto for my MQTT Broker.
我想知道是否可以请求所有已发布的主题?
I was wondering if it would be possible to request all published topics?
因此不能通过订阅所有内容,即#
.
Thus NOT by subscribing to everything, i.e. #
.
我不想订阅每个可用的主题.我只是在寻找一种检索所有已发布主题的方法.例如,代理可以使用包含所有已发布主题的字符串数组进行响应.
I don't want to subscribe to every available topic. I'm just looking for a way to retrieve all published topics. The broker could for instance response with a string array containing all the published topics.
推荐答案
MQTT代理的可管理性目前还很不成熟. 我也不知道从任何经纪人那里检索已发布主题列表的方法. 但是,有一些标准化工作,例如.与$ SYS主题树 https://github.com/mqtt/mqtt.github.io/wiki/SYS-Topics .
Manageability of MQTT brokers is very immature at this point. I also don't know of a way to retrieve the list of published topics from any broker. But, there are standardization efforts, eg. with the $SYS topic tree https://github.com/mqtt/mqtt.github.io/wiki/SYS-Topics.
其他代理可以通过SNMP管理,例如. MessageSight https://www.ibm.com/support/knowledgecenter/zh-CN/SSCGGQ_1.2.0/com.ibm.ism.doc/Monitoring/admin00008_.html .它可以在其WEB界面中列出主题,但我不知道以编程方式检索主题的方法.
Other brokers are manageable via SNMP, eg. MessageSight https://www.ibm.com/support/knowledgecenter/en/SSCGGQ_1.2.0/com.ibm.ism.doc/Monitoring/admin00008_.html . It can list the topics in its WEB interface, but I don't know of a programmatic way to retrieve them.
这篇关于索取所有已发布的主题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!