Skip to content
Branch: master
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_test.go
descriptor.json
go.mod
go.sum
metadata.go
utils.go

README.md

CoAp

This activity allows you to send a CoAP message.

Installation

Flogo CLI

flogo install github.com/project-flogo/edge-contrib/activity/coap

Configuration

Settings:

Name Type Description
method string The CoAP method to use (allowed values are GET, POST, PUT, DELETE) - REQUIRED
uri string The CoAP resource URI - REQUIRED
messageType string The message type (allowed values are Confirmable, NonConfirmable, Acknowledgement, Reset), Confirmable is the default
options params The CoAP options to set

Input:

Name Type Description
queryParams params The query params of the CoAP message
payload string The payload of the CoAP message
messageId int ID used to detect duplicates and for optional reliability

Output:

Name Type Description
response string The response

Example

{
  "id": "coap-activity",
  "name": "Coap Activity",
  "description": "CoAP Get Example",
  "activity": {
    "ref": "github.com/project-flogo/edge-contrib/activity/coap",
    "settings": {
      "method" : "GET",
      "uri": "coap://localhost:5683/flogo"
    },
    "input" : {
        "payload" : "Hello from Flogo"
    }
  }
}
You can’t perform that action at this time.