locked
Triggering Events upon properties changes and event subscription with Azure IoT Device Provisioning Service RRS feed

  • Question

  • Is it possible to send out event or notification whenever the properties below are changed, and ideally the event can be routed to Azure Service Bus or similar?

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


    • Edited by Pingpong689 Tuesday, August 13, 2019 5:54 PM
    Saturday, August 10, 2019 8:39 PM

All replies

  • Device Twins are used to synchronize state between an IoT solution’s cloud service and its devices. Each device’s twin exposes a set of desired properties and reported properties. The cloud service populates the desired properties with values it wishes to send to the device. Alternatively a cloud service can be notified of device lifecycle events and twin property change events allowing the service to react as new devices are added, existing devices are removed or as twin properties change.

    Device Twin Notifications are implemented using another IoT Hub feature called routes. Routes allow device messages and notifications from various IoT Hub sources to be forwarded to user specified endpoints based on a filter. Please read: https://azure.microsoft.com/en-us/blog/deep-dive-into-azure-iot-hub-notifications-and-device-twin/

    Thursday, August 15, 2019 7:12 PM