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
activity.go
activity.json
activity_test.go

README.md

udp

This activity provides your flogo application the ability to send a message over UDP.

Installation

flogo install github.com/jvanderl/flogo-components/activity/udp

Link for flogo web:

https://github.com/jvanderl/flogo-components/activity/udp

Schema

Inputs and Outputs:

{
  "input":[
    {
      "name": "port",
      "type": "integer",
      "required": true
    },
    {
      "name": "multicast_group",
      "type": "string",
      "required": true
    },
    {
      "name": "message",
      "type": "string",
      "required": true
    }
  ],
  "output": [
    {
      "name": "result",
      "type": "any"
    }
  ]
}

Settings

Setting Description
port The UDP portnumber
multicast_group The IP address of the multicast group
message The message to send

Outputs

Output Description
result 'OK' when message is sent correctly, otherwise error result

Configuration Examples

Simple

Configure a task in flow to send "Hello World" on port 10001

{
  "id": 3,
  "type": 1,
  "activityType": "udp",
  "name": "Send Hello World",
  "attributes": [
    { "name": "port", "value": "10001" },
    { "name": "multicast_group", "value": "127.0.0.1" },
    { "name": "message", "value": "Hello World" }    
  ]
}