package
0.0.0-20200821104852-f76c6d292a95
Repository: https://github.com/jvanderl/flogo-components.git
Documentation: pkg.go.dev

# README

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

SettingDescription
portThe UDP portnumber
multicast_groupThe IP address of the multicast group
messageThe message to send

Outputs

OutputDescription
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" }    
  ]
}