Save Attribute


The Save Attribute node saves the output from the previous node as device attribute information. The saved information can be viewed in EnOS Management Console > Device Management > Device Assets > Device Details > Attributes.

Node Type

EnOS.

Input and Output Ability

This node has multiple entry points and 2 exit points (success/failure).

Node Properties

../../../_images/save_attribute.png


Name

The name for this node.


Description

The description for this node.

Limitations

  • The input msg must be in EnOS standard data format, with the metadata containing the asset ID, device key, product key, and organization ID.

Samples

Input Sample

{
  "MetaData": {
    "messageType": "PostAttribute",
    "assetId": "assetId",
    "deviceKey": "deviceKey",
    "productKey": "productKey",
    "orgId": "yourOrgId"
  },
  "Body": {
    "capacity":"82"
  }
}

Output Sample

{
  "MetaData": {
    "messageType": "PostAttribute",
    "assetId": "assetId",
    "deviceKey": "deviceKey",
    "productKey": "productKey",
    "orgId": "yourOrgId",
    "componentResult": "Success"
  },
  "Body": {
    "capacity":"82",
  }
}