Skip to content

Commit

Permalink
style: reformat example flows
Browse files Browse the repository at this point in the history
This makes it easier to track changes to the flows.
  • Loading branch information
JKRhb committed Apr 13, 2022
1 parent a4d95d5 commit e564e85
Show file tree
Hide file tree
Showing 2 changed files with 75 additions and 2 deletions.
44 changes: 43 additions & 1 deletion examples/client_flow.json
Original file line number Diff line number Diff line change
@@ -1 +1,43 @@
[{"type":"tab","id":"e237f4a1.bd2cd","label":"Sheet 1"},{"id":"9ce129d0.866cd","type":"coap request","method":"GET","observe":true,"url":"coap://localhost/topic1","content-format":"text/plain","name":"Subscribe to topic1","x":420,"y":109,"z":"e237f4a1.bd2cd","wires":[["2d42f264.3a0b86"]]},{"id":"5dc3e18a.3f61d8","type":"inject","name":"Fire once on start","topic":"","payload":"","payloadType":"none","repeat":"","crontab":"","once":true,"x":135,"y":111,"z":"e237f4a1.bd2cd","wires":[["9ce129d0.866cd"]]},{"id":"2d42f264.3a0b86","type":"debug","name":"","active":true,"console":"true","complete":"false","x":689,"y":121,"z":"e237f4a1.bd2cd","wires":[]}]
[
{ "type": "tab", "id": "e237f4a1.bd2cd", "label": "Sheet 1" },
{
"id": "9ce129d0.866cd",
"type": "coap request",
"method": "GET",
"observe": true,
"url": "coap://localhost/topic1",
"content-format": "text/plain",
"name": "Subscribe to topic1",
"x": 420,
"y": 109,
"z": "e237f4a1.bd2cd",
"wires": [["2d42f264.3a0b86"]]
},
{
"id": "5dc3e18a.3f61d8",
"type": "inject",
"name": "Fire once on start",
"topic": "",
"payload": "",
"payloadType": "none",
"repeat": "",
"crontab": "",
"once": true,
"x": 135,
"y": 111,
"z": "e237f4a1.bd2cd",
"wires": [["9ce129d0.866cd"]]
},
{
"id": "2d42f264.3a0b86",
"type": "debug",
"name": "",
"active": true,
"console": "true",
"complete": "false",
"x": 689,
"y": 121,
"z": "e237f4a1.bd2cd",
"wires": []
}
]
33 changes: 32 additions & 1 deletion examples/server_flow.json
Original file line number Diff line number Diff line change
@@ -1 +1,32 @@
[{"type":"tab","id":"e237f4a1.bd2cd","label":"Sheet 1"},{"id":"a074090c.3d263","type":"coap-server","name":"Hello CoAP Server","port":"5683"},{"id":"e7ed27ab.2615","type":"coap in","method":"GET","name":"GET /hello","server":"a074090c.3d263","url":"/hello","x":360,"y":58,"z":"e237f4a1.bd2cd","wires":[["2450fb5a.314804"]]},{"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":[[]]}]
[
{ "type": "tab", "id": "e237f4a1.bd2cd", "label": "Sheet 1" },
{
"id": "a074090c.3d263",
"type": "coap-server",
"name": "Hello CoAP Server",
"port": "5683"
},
{
"id": "e7ed27ab.2615",
"type": "coap in",
"method": "GET",
"name": "GET /hello",
"server": "a074090c.3d263",
"url": "/hello",
"x": 360,
"y": 58,
"z": "e237f4a1.bd2cd",
"wires": [["2450fb5a.314804"]]
},
{
"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": [[]]
}
]

0 comments on commit e564e85

Please sign in to comment.