Skip to content

Instantly share code, notes, and snippets.

@razueroh
Created February 12, 2016 01:04
Show Gist options
  • Save razueroh/2a062aa901601c2f6648 to your computer and use it in GitHub Desktop.
Save razueroh/2a062aa901601c2f6648 to your computer and use it in GitHub Desktop.
NoFlo CoAP client demo
{
"properties": {
"name": "CoAP Client Example",
"id": "CoAPClientExample",
"environment": {
"type": "noflo-nodejs"
}
},
"inports": {},
"outports": {},
"groups": [],
"processes": {
"SendRequest": {
"component": "coap/SendRequest",
"metadata": {
"label": "SendRequest",
"x": 504,
"y": 108,
"width": 72,
"height": 72
}
},
"ReceiveResponse": {
"component": "coap/ReceiveResponse",
"metadata": {
"label": "ReceiveResponse",
"x": 648,
"y": 108,
"width": 72,
"height": 72
}
},
"Output": {
"component": "core/Output",
"metadata": {
"label": "Output",
"x": 792,
"y": 108,
"width": 72,
"height": 72
}
},
"Repeat": {
"component": "core/Repeat",
"metadata": {
"label": "Repeat",
"x": 360,
"y": 108,
"width": 72,
"height": 72
}
}
},
"connections": [
{
"src": {
"process": "Repeat",
"port": "out"
},
"tgt": {
"process": "SendRequest",
"port": "url"
},
"metadata": {
"route": 4
}
},
{
"src": {
"process": "Repeat",
"port": "out"
},
"tgt": {
"process": "SendRequest",
"port": "start"
},
"metadata": {
"route": 3
}
},
{
"src": {
"process": "SendRequest",
"port": "request"
},
"tgt": {
"process": "ReceiveResponse",
"port": "request"
},
"metadata": {
"route": 4
}
},
{
"src": {
"process": "ReceiveResponse",
"port": "message"
},
"tgt": {
"process": "Output",
"port": "in"
},
"metadata": {
"route": 7
}
},
{
"data": "coap://coap.me:5683/hello",
"tgt": {
"process": "Repeat",
"port": "in"
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment