     datatype: 'object'
 
   noflo.helpers.WirePattern c,
-    in: ['hostname', 'port']
-    params: [
-      'method'
-      'confirmable'
-      'observe'
-      'pathname'
-      'query'
-      'options'
-      'agent'
-      'proxy_uri'
-      'blockwise'
-    ]
+    in: 'coap'
+    params: 'url'
     out: 'request'
     forwardGroups: true
-    ordered: true
   , (data, groups, out) ->
-    req =
-      hostname: data.hostname
-      port: data.port
-      method: c.params.method
-      confirmable: c.params.confirmable
-      observe: c.params.observe
-      pathname: c.params.pathname
-      query: c.params.query
-      options: c.params.options
-      agent: c.params.agent
-      proxyUri: c.params.proxy_uri
 
-    blockwise = c.params.blockwise
+    req = data.request c.params.url
 
-    console.log(req, blockwise)
-
-    request = coap.request('coap://localhost/Matteo')
-
-    request.end ->
-      out.send request
+    req.end ->
+      out.send req
 
   # Finally return the component instance
   c

noflo = require 'noflo'
coap = require 'coap'

# @runtime noflo-nodejs


  c.description = 'Send response'

  # Add input ports
  c.inPorts.add 'url',
    datatype: 'object'
    require: yes
  c.inPorts.add 'coap',
    datatype: 'object'
    require: yes

  # Add output ports
