Send and receive bundles over OSC
Send and receive bundles over OSC
[{"id":"df028518.9678a","type":"inject","z":"8d7fa749.d4e578","name":"","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":160,"y":140,"wires":[["65a2a515.e92204"]]},{"id":"c0ea0b49.690688","type":"osc","z":"8d7fa749.d4e578","name":"","path":"","metadata":false,"x":510,"y":140,"wires":[["321673d1.67b25c"]]},{"id":"8a64db49.0d4258","type":"debug","z":"8d7fa749.d4e578","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":710,"y":260,"wires":[]},{"id":"18f4dd54.259383","type":"osc","z":"8d7fa749.d4e578","name":"","path":"","metadata":false,"x":510,"y":260,"wires":[["8a64db49.0d4258"]]},{"id":"321673d1.67b25c","type":"udp out","z":"8d7fa749.d4e578","name":"","addr":"localhost","iface":"","port":"1235","ipv":"udp4","outport":"","base64":false,"multicast":"false","x":730,"y":140,"wires":[]},{"id":"7b890d7e.87abbc","type":"udp in","z":"8d7fa749.d4e578","name":"","iface":"","port":"1235","ipv":"udp4","multicast":"false","group":"","datatype":"buffer","x":140,"y":260,"wires":[["18f4dd54.259383"]]},{"id":"65a2a515.e92204","type":"function","z":"8d7fa749.d4e578","name":"","func":"msg.payload = {\n \"packets\": [\n {\n \"address\": \"/carrier/frequency\",\n \"args\": [\n {\n \"type\": \"f\",\n \"value\": 440\n }\n ]\n },\n {\n \"address\": \"/carrier/amplitude\",\n \"args\": [\n {\n \"type\": \"f\",\n \"value\": 0.5\n }\n ]\n },\n {\n \"address\": \"/blob\",\n \"args\": [\n {\n \"type\": \"b\",\n \"value\": [0x63, 0x61, 0x74, 0x21]\n }\n ]\n }\n ]\n}\nreturn msg;\n","outputs":1,"noerr":0,"x":330,"y":140,"wires":[["c0ea0b49.690688"]]},{"id":"e1a4f68e.68cdc","type":"comment","z":"8d7fa749.d4e578","name":"Send a bundle over OSC","info":"","x":190,"y":100,"wires":[]},{"id":"cca0b4e3.ad25b","type":"comment","z":"8d7fa749.d4e578","name":"Receive a bundle over OSC (udp in must be set to Buffer)","info":"","x":290,"y":220,"wires":[]}]