IoT Hub Update Device Twin
The IoT Hub Update Device Twin action will update the device twin on azure. The name of the property will match the input name.
To view messages in Azure, use the az IoT Hub monitor events command in the Azure cloud shell. For more information on az iot hub monitor-events, see az iot hub monitor-events. The Cloud shell documentation is found here.
Parameter description
Parameter
|
Description
|
---|---|
Twin Properties Template | A json object where each item defined is created into an input in the action where you map deviceWISE Devices and variables to. The name of the item will be the name of the key of the Twin Property. Properties already present will be updated. New properties will be added if they do not exist. |
The supported type variables are: UINT1, UINT2, UINT4, UINT8, INT1, INT2, INT4, INT8, FLOAT4, FLOAT8, TIMESTAMP, STRING, BOOL. Arrays are not supported.
It is possible to add/change properties in the json object at the topmost level. For instance: to change a tag:
{
"tag": 1
}
But will not be able to change tag 2 in the following example:
{
"tag": {
"tag2": 1
}
}