Created
February 12, 2016 01:04
-
-
Save razueroh/2a062aa901601c2f6648 to your computer and use it in GitHub Desktop.
NoFlo CoAP client demo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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