【问题标题】:How do I properly subscribe to a topic using eclipse?如何使用 eclipse 正确订阅主题?
【发布时间】:2020-03-27 09:42:54
【问题描述】:

我正在开发 IOT 应用程序,我将在其中将移动应用程序连接到 pub sub broker 以从移动电源盒中释放便携式充电器。我有盒子制造的文件,但我似乎无法在我的电脑和盒子之间建立双向通信。我正在使用 PAHO-eclipse 客户端来调试连接,但是在尝试发送他们在文档中建议的订阅时,我不断收到订阅失败消息。有没有人认为我正在尝试的东西有什么本质上的错误?有没有更好的方法来解决订阅问题?

Here is what my eclipse client looks like

Here is the call I make to get specific information on each powerbank

here is a segment of the documentation where it says to subscribe in the format that I have in eclipse

我是使用 PubSub 的新手,因此我们将非常感谢任何建议或指点。提前致谢

【问题讨论】:

  • 您从哪里获得文档链接?这对我来说似乎不正确。

标签: iot publish-subscribe paho alibaba-cloud


【解决方案1】:

您共享的第三个链接,即文档链接,将 主题 显示为:

/$productKey/$deviceName/user/get

我认为以下是文档链接:
https://d.test.dudubox.cn/sw/web/docs/aliyuniot.html

英文翻译版:
https://translate.google.com/translate?sl=zh-CN&tl=en&u=https%3A%2F%2Fd.test.dudubox.cn%2Fsw%2Fweb%2Fdocs%2Faliyuniot.html

主题显示为:

/$productKey/$deviceName/get

还可以查看以下源链接:
https://cloudcpu.blogspot.com/2020/01/alibaba-cloud-iot-platform-with-mqtt.html

我希望这会有所帮助!

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2019-11-27
    • 1970-01-01
    • 2021-03-28
    • 1970-01-01
    • 2015-08-11
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多