Edge 1.11.0

Device: Startup Trigger Node

The Device: Startup Trigger fires a workflow whenever the Gateway Edge Agent starts or restarts.

Device Startup Trigger

Node Properties

The Device: Startup Trigger has no configuration. When a workflow with this trigger is deployed to an Edge Compute Device, the workflow will fire every time the Gateway Edge Agent starts or restarts.

Payload

The payload contains an empty object on the standard data field, since there is no information to report other than that the agent started or restarted.

In the general case, a Device: Startup workflow payload looks like the following:

{
  "agentEnvironment": {
    "EXAMPLE": "Environment Variable"
  },
  "applicationId": "555555555555eeeeeeeeeeee",
  "applicationName": "My Great Application",
  "data": {},
  "deviceId": "222222222222bbbbbbbbbbbb",
  "deviceName": "My Great Device",
  "deviceTags": {
    "aTagKey": [
      "exampleTagValue"
    ],
    "tagWithMultipleValues": [
      "tagValue",
      "anotherTagValue"
    ]
  },
  "flowId": "333333333333cccccccccccc",
  "flowName": "My Great Workflow",
  "flowVersion": "myFlowVersion",
  "globals": {
    "aJsonGlobal": {
      "key": "value"
    },
    "aNumberGlobal": 42,
    "aStringGlobal": "My value"
  },
  "isConnectedToLosant": false,
  "time": Fri Feb 19 2016 17:26:00 GMT-0500 (EST),
  "triggerId": "<trigger key>",
  "triggerType": "onBoot"
}

Was this page helpful?


Still looking for help? You can also search the Losant Forums or submit your question there.