Switch branches/tags
Nothing to show
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
README.md
trigger.go
trigger.json
trigger_test.go

README.md

UDP

This trigger provides your flogo application a stream of UDP data from the specificed port

Installation

flogo install github.com/ayh20/flogo-components/trigger/udp

Link for flogo web:

https://github.com/ayh20/flogo-components/trigger/udp

Schema

Outputs and Endpoint:

{
"settings":[
    {
      "name": "port",
      "type": "integer"
    },
    {
      "name": "multicast_group",
      "type": "string"
    }
  ],
  "outputs": [
    {
      "name": "payload",
      "type": "string"
    }
  ],
  "handler": {
    "settings": [
      {
        "name": "handler_setting",
        "type": "string"
      }
    ]
}

Settings

Setting Description
port port to listen on
multicast_group listen group for Mukticast messages

Ouputs

Output Description
payload The raw data from the message

Handlers

Setting Description
N/A awaiting better understanding

Example Configuration

Triggers are configured via the triggers.json of your application. The following is and example configuration of the UDP Trigger.

Read UDP Data

Configure the Trigger to capture all data on a given port

{
  "name": "udp",
  "settings": {
		"port": 20777,
		"multicast_group": ""
  },
  "handlers": [
    {
      "actionId": "local://testFlow2",
      "settings": {
        "handler_setting": "xxx"
      }
    }
  ]
}}

Configure the Trigger to capture data for a multicast group/port

{
  "name": "udp",
  "settings": {
		"port": 22600,
		"multicast_group": "224.192.32.19"
  },
  "handlers": [
    {
      "actionId": "local://testFlow2",
      "settings": {
        "handler_setting": "xxx"
      }
    }
  ]
}}