Poll Pending Command


The Poll Pending Command node polls cache command information.

Node Type

EnOS.

Input and Output Ability

This node has multiple entry points and 3 exit points (has result/has no result/failure).

Node Properties

../../../_images/poll_pending_command.png


Name

The name for this node.


Description

The description for this node.

Samples

Input Sample

{
  "MetaData": {
    "messageType": "PollPendingCommand",
    "assetId": "assetId",
    "deviceKey": "device_1",
    "productKey": "product_1",
    "orgId": "yourOrgId"
  },
  "Body": {}
}

Output Sample

The values of componentResult indicates whether message polled command information.

  • HasResult: There is information after polling.

  • HasNoResult: There is no information after polling.

  • Failure: Failed to poll.


{
  "MetaData": {
    "messageType": "PollPendingCommand",
    "assetId": "assetId",
    "deviceKey": "device_1",
    "productKey": "product_1",
    "orgId": "yourOrgId",
    "componentResult": "HasResult"
  },
  "Body": {
    "orgId": "yourOrgId",
    "commandId": "3166740448084140032",
    "commandType": 2,
    "productKey": "product_1",
    "deviceKey": "device_1",
    "assetId": "assetId",
    "raw": false,
    "tslIdentifier": "service1",
    "inputData": {}
  }
}