IoT Hub Desired Twin State

A IoT Hub Desired Twin State event will listen for changes in the desired properties by Azure.

Defining a IoT Hub Desired Twin State

To define a IoT Hub Desired Twin State event trigger, follow these steps:

  1. From the Workbench left pane, expand the node where you want to define the IoT Hub Desired Twin State event trigger.
  2. Click Projects.
    The Projects tab appears with all the projects in the node.
  3. Right-click on a specific project and then click New > Use Canvas Editor.
    Alternatively, click New button at the bottom of the Projects window when a specific project tab has already been selected.
  4. The new Trigger window appears.
    Name the trigger. The trigger name can be up to 64 characters and include letters, numbers, and the underscore character. Spaces are allowed.
  5. From the Event tab, select the Trigger Event Type down-arrow, expand the Azurecategory, and then select IoT Hub Desired Twin State.
     

IoT Hub Desired Twin State event type trigger event variables

The input event variables available to a IoT Hub Desired Twin State event trigger are:

Parameter Description
Property Identifier The Twin property identifier that should be updated.
Property Value The Twin property value. The type will change depending on the Twin Property.

The Event tab becomes active with parameters that accommodate the IoT Hub Desired Twin State event.

Parameter Description
Twin Property Filter When filled in this event will only fire on requests to update the specified Twin Property Filter.
Twin Property Type The expected type of the device property.

Related Topics Link IconRelated Topics