Receive Message from IoT Hub
A Receive Message from IoT Hub event will fire on receiving a message from IoT Hub.
Defining a Receive Message from IoT Hub
To define a Receive Message from IoT Hub event trigger, follow these steps:
- From the Workbench left pane, expand the node where
you want to define the Receive Message from IoT Hub event trigger.
- Select the Project icon to display
the Projects window, right-click a
specific project tab to display its pop-up menu, and
then select New.
You also can select the New button at the bottom of the Projects window when a specific project tab has already been selected. - 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. - From the Event tab, select the
Trigger Event Type down-arrow, expand
the Azurecategory, and then select
Receive Message from IoT Hub.
Receive Message from IoT Hub event type trigger event variables
The input event variables available to a Receive Message from IoT Hub event trigger are:
Parameter | Description |
---|---|
Connection Device ID | An ID set by IoT Hub on device-to-cloud messages. It contains the deviceId of the device that sent the message. |
Connection Module ID | An ID set by IoT Hub on device-to-cloud messages. It contains the moduleId of the device that sent the message. |
Content System Property | Azure System Property. |
Content Type | The content-type of the message payload, as per supported values on RFC 2046. |
Correlation ID | A string property in a response message that typically contains the MessageId of the request, in request-reply patterns. |
Encoding System Property | Azure System Property. |
Input Name | Azure System Property. |
Message | The data sent from the cloud to the device. |
Message ID | A user-settable identifier for the message used for request-reply patterns. Format: A case-sensitive string (up to 128 characters long) of ASCII 7-bit alphanumeric characters + {'-', ':', '.', '+', '%', '_', '#', '*', '?', '!', '(', ')', ',', '=', '@', ';', '$', '''}. |
Message Length | The length of the data from the cloud. |
Generated Property | The event variables generated by the Properties Template provided by the user. |
The Event tab becomes active with parameters that accommodate the Receive Message from IoT Hub event.
Parameter | Description |
---|---|
Properties Template | The template of the expected message properties. Can be empty. |