Skip to content

Commit

Permalink
feat: add coap response node to examples
Browse files Browse the repository at this point in the history
  • Loading branch information
JKRhb committed Apr 13, 2022
1 parent e564e85 commit addfb55
Showing 1 changed file with 40 additions and 21 deletions.
61 changes: 40 additions & 21 deletions examples/server_flow.json
Original file line number Diff line number Diff line change
@@ -1,32 +1,51 @@
[
{ "type": "tab", "id": "e237f4a1.bd2cd", "label": "Sheet 1" },
{
"id": "a074090c.3d263",
"type": "coap-server",
"name": "Hello CoAP Server",
"port": "5683"
"type": "tab",
"id": "35e56c01582908f3",
"label": "Sheet 1"
},
{
"id": "22b4781dd35417aa",
"type": "function",
"z": "35e56c01582908f3",
"name": "Set payload",
"func": "msg.payload = \"Hello there\"\nreturn msg;",
"outputs": 1,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 490,
"y": 180,
"wires": [["5309313d5cc4154d"]]
},
{
"id": "e7ed27ab.2615",
"id": "602f9b93480bc935",
"type": "coap in",
"z": "35e56c01582908f3",
"method": "GET",
"name": "GET /hello",
"server": "a074090c.3d263",
"name": "",
"server": "ab3060f4c7e96482",
"url": "/hello",
"x": 360,
"y": 58,
"z": "e237f4a1.bd2cd",
"wires": [["2450fb5a.314804"]]
"x": 260,
"y": 180,
"wires": [["22b4781dd35417aa"]]
},
{
"id": "2450fb5a.314804",
"type": "function",
"name": "Responder",
"func": "msg.res.end('Hello there');\nreturn msg;",
"outputs": 1,
"x": 568,
"y": 60,
"z": "e237f4a1.bd2cd",
"wires": [[]]
"id": "5309313d5cc4154d",
"type": "coap response",
"z": "35e56c01582908f3",
"name": "",
"statusCode": "",
"contentFormat": "text/plain",
"x": 690,
"y": 180,
"wires": []
},
{
"id": "ab3060f4c7e96482",
"type": "coap-server",
"name": "Hello CoAP Server",
"port": "5683"
}
]

0 comments on commit addfb55

Please sign in to comment.