diff --git a/examples/client_flow.json b/examples/client_flow.json index bdcf7bd..164057b 100644 --- a/examples/client_flow.json +++ b/examples/client_flow.json @@ -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":[]}] \ No newline at end of file +[ + { "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": [] + } +] diff --git a/examples/server_flow.json b/examples/server_flow.json index df8623c..530c0e1 100644 --- a/examples/server_flow.json +++ b/examples/server_flow.json @@ -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":[[]]}] \ No newline at end of file +[ + { "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": [[]] + } +]