本文介绍了如何在RSMB中配置MQTT-SN主题ID的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的问题是关于通过MQTT-SN网关使用MQTT主题名称和MQTT-SN主题ID配置RSMB.

使用"Really Small Message Broker入门"信息对于弄清楚如何将两个Really Small Message Broker连接在一起时如何配置主题名称映射非常有用.

关于 MQTT-SN规范v1 .2 在"6.10网关的发布过程"部分中,网关(在我的情况下,是使用broker_mqtts实现的RSMB中包含的网关)可以发送REGISTER消息,以通知客户端有关主题名称及其分配的主题ID值.现在,我想配置MQTT主题名称到预定义的MQTT-SN主题ID的映射.

是否可以在RSMB broker.cfg配置中配置映射,以在成功连接到RSMB之后向MQTT-SN客户端告知预定义的主题ID?

解决方案

不幸的是,没有.RSMB目前不支持预定义的主题.但是,您可以从客户端注册主题.或者,您可以订阅真实主题.

我发现RSMB尚未准备就绪.您可以尝试使用它,但是它有很多错误.

my question is regarding the configuration of the RSMB using MQTT topic names and MQTT-SN topic ids over a MQTT-SN gateway.

Using the "Getting started with the Really Small Message Broker" information is very useful to figure out how to configure topic name mapping in the case of connecting two Really Small Message Brokers together.

Regarding to the MQTT-SN specification v1.2 in section "6.10 Gateway's Publish Procedure", the gateway (in my case a gateway included in the RSMB, using the broker_mqtts implementation) may send a REGISTER message to inform the client about the topic name and its assigned topic ID value. Now, I would like to configure the mapping of MQTT topic names to pre-defined MQTT-SN topic IDs.

Is it possible to configure a mapping in the RSMB broker.cfg configuration to tell a MQTT-SN client the pre-defined topic ID after a successful connection to the RSMB?

解决方案

Unfortunately no.RSMB does not support predefined topics at the moment.However you can register topics from client side.Or you can subscribe on real topics.

I found RSMB nowhere near production ready. You can experiment with it, but it has a LOT of bugs.

这篇关于如何在RSMB中配置MQTT-SN主题ID的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-12 09:55