Edge 1.0.0

Device: Command Trigger Node

The Device: Command Trigger fires a workflow whenever the Edge Compute or Embedded Device executing the workflow receives a command.

Device: Command Trigger

Node Properties

The Device: Command Trigger has no configuration. When a workflow with this trigger is deployed to a device, the workflow will fire on receipt of the command.

Payload

The payload includes the triggering device command on the data field. In the general case, a Device: Command payload will look like the following:

{
  "applicationId": <id of the current application>,
  "applicationName": <name of the current application>,
  "data": {
    "name": <name of the command>,
    "payload": {
      "your": "custom",
      "command": "values",
      ...
    },
    "time": <time of the command>
  },
  "deviceId": <id of the edge device>,
  "deviceName": <the edge device name>,
  "deviceTags": {<any tags for the edge device>},
  "flowId": <id of the current workflow>,
  "flowName": <name of the current workflow>,
  "flowVersion": <name of the current workflow version>,
  "globals": <object of workflow globals>,
  "isConnectedToWEGnology": <if the agent is connected to WEGnology>,
  "agentEnvironment": <object of environment variables>,
  "time": <time the command arrived>,
  "triggerId": "deviceCommand",
  "triggerType": "deviceCommand"
}