【问题标题】:AWS Iot no activity loggedAWS IoT 未记录任何活动
【发布时间】:2020-08-24 13:04:32
【问题描述】:

我正在尝试查找连接的设备,根据论坛并被建议订阅“$aws/events/presence/+”。

我创建了两个客户端,其中一个订阅“$aws/events/presence/+”主题,另一个发送连接命令。

我在标签下看不到任何活动。

您能帮我解决这个问题吗?

【问题讨论】:

    标签: iot aws-iot


    【解决方案1】:

    您需要通过添加子主题或使用多级主题通配符(# 而不是+)来考虑presence 主题的子主题。这意味着您需要订阅$aws/events/presence/connected/+(或$aws/events/presence/# 以监控连接和断开连接)。

    这说明了 reserved topics $aws/events/presence/connected/clientId$aws/events/presence/disconnected/clientId 上的 connecteddisconnected 子主题。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-08-02
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-02-22
      相关资源
      最近更新 更多