azure - 使用 Azure IoT 设备配置服务在属性更改和事件订阅时触发事件

标签 azure azure-iot-hub

每当以下属性发生更改时,是否可以发送事件或通知,并且最好将事件路由到 Azure 服务总线或类似的服务?

{
  "tags": {
    "A": "Test",
    "B": true
  },
  "properties": {
    "desired": {
      "C": 1,
      "D": 2,
      "E": 3
    }
  }
}

最佳答案

您的问题属于 Azure IoT 中心设备孪生服务。 正如 @Roman Kiss 指出的,您需要在 IoTHub->消息路由->自定义端点处创建一个自定义端点,您可以在其中选择服务总线队列:

image -> Custom endpoints Service Bus Queues

enter image description here

之后,通过选择设备孪生更改事件作​​为数据源和新的服务总线端点,在 IoTHub->消息路由 处创建新路由:

image -> Message Routing to Service Bus endpoint

enter image description here

供引用:

关于azure - 使用 Azure IoT 设备配置服务在属性更改和事件订阅时触发事件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57445535/

相关文章:

scala - 如果我在单行数据 block 笔记本中执行命令会花费更少的时间吗?

azure - Azure AD B2C 登录的正确 URL

c# - ASP.NET 应用程序状态提供程序

sql-server - 暂停 Azure 功能,直到 Entity Framework 进行更改

c++ - 5_4-2016q3\bin\arm-none-eabi-g++ 未找到 - Windows 10

reactjs - 在没有登录用户的 Azure AD 中调用 API 的 Web 应用程序的身份验证/授权场景是什么?

azure - 有谁知道 Windows Azure 带宽是按位或字节计算的吗?

c# - 向 Azure 物联网中心发送消息

node.js - 是否可以向 azure Blob 添加过滤器

c - 尝试在多个文件中使用 Azure-iot-sdk-c 序列化器模型时出现链接器错误