[ { "id": "242caaef.6b37d6", "type": "serial in", "z": "e56d497.0c89db8", "name": "RF-Link (Arduino Mega)", "serial": "fdc206cd.04eaf8", "x": 140, "y": 80, "wires": [ [ "0b0dfc76e194e5b1" ] ] }, { "id": "0b0dfc76e194e5b1", "type": "function", "z": "e56d497.0c89db8", "name": "Remove \\r at end of string", "func": "var words = msg.payload.split('\\r');\nvar KnotenName = (words[0]);\n\nreturn {payload:KnotenName};", "outputs": 1, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 410, "y": 80, "wires": [ [ "f78d6eab.53c47", "a4e65f8f.68d27" ] ] }, { "id": "a4e65f8f.68d27", "type": "debug", "z": "e56d497.0c89db8", "name": "Serial Data", "active": false, "tosidebar": true, "console": false, "tostatus": true, "complete": "payload", "targetType": "msg", "statusVal": "payload", "statusType": "auto", "x": 650, "y": 100, "wires": [] }, { "id": "fdc206cd.04eaf8", "type": "serial-port", "serialport": "/dev/ttyACM0", "serialbaud": "57600", "databits": "8", "parity": "none", "stopbits": "1", "waitfor": "", "dtr": "none", "rts": "none", "cts": "none", "dsr": "none", "newline": "\\n", "bin": "false", "out": "char", "addchar": "", "responsetimeout": "10000" } ]