[
    {
        "id": "f0ca7ab6.b09058",
        "type": "tab",
        "label": "2-get-device",
        "disabled": false,
        "info": "# get-device: basic example\n\nIssues a _get-device_ command to the controller with serial number 405419896.\n\nThe _get-device_ flow in the _dashboard_ flowset contains a more complete example."
    },
    {
        "id": "cf35d9904542f0af",
        "type": "uhppoted-config",
        "name": "debug",
        "timeout": "5000",
        "bind": "192.168.1.100",
        "broadcast": "192.168.1.255:60005",
        "listen": "192.168.1.100:60001",
        "controllers": "{\"303986753\":{\"address\":\"192.168.1.100:60005\",\"broadcast\":false}}",
        "debug": true
    },
    {
        "id": "661f7370.91414c",
        "type": "inject",
        "z": "f0ca7ab6.b09058",
        "name": "test",
        "props": [
            {
                "p": "payload"
            },
            {
                "p": "topic",
                "vt": "str"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "{\"controller\":{\"id\":405419896}}",
        "payloadType": "json",
        "x": 130,
        "y": 220,
        "wires": [
            [
                "cf961bd6.504938"
            ]
        ]
    },
    {
        "id": "cf961bd6.504938",
        "type": "uhppoted-get-device",
        "z": "f0ca7ab6.b09058",
        "name": "get-device",
        "topic": "",
        "config": "cf35d9904542f0af",
        "x": 290,
        "y": 220,
        "wires": [
            [
                "1b475bda78fb39d0"
            ]
        ]
    },
    {
        "id": "4cfaeb95fa7b0084",
        "type": "inject",
        "z": "f0ca7ab6.b09058",
        "name": "test",
        "props": [
            {
                "p": "payload"
            },
            {
                "p": "topic",
                "vt": "str"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "{\"controller\":{\"id\":405419896,\"address\":\"192.168.1.100:60005\",\"protocol\":\"tcp\"}}",
        "payloadType": "json",
        "x": 130,
        "y": 340,
        "wires": [
            [
                "f12b1459d211e6d6"
            ]
        ]
    },
    {
        "id": "f12b1459d211e6d6",
        "type": "uhppoted-get-device",
        "z": "f0ca7ab6.b09058",
        "name": "get-device-tcp",
        "topic": "",
        "config": "cf35d9904542f0af",
        "x": 300,
        "y": 340,
        "wires": [
            [
                "68a62e02b458d87a"
            ]
        ]
    },
    {
        "id": "1b475bda78fb39d0",
        "type": "link out",
        "z": "f0ca7ab6.b09058",
        "name": "get-device-udp",
        "mode": "link",
        "links": [
            "c9ba98324d709510",
            "d4b1333ba9b35b8a"
        ],
        "x": 435,
        "y": 220,
        "wires": []
    },
    {
        "id": "68a62e02b458d87a",
        "type": "link out",
        "z": "f0ca7ab6.b09058",
        "name": "get-device-tcp",
        "mode": "link",
        "links": [
            "d4b1333ba9b35b8a",
            "c9ba98324d709510"
        ],
        "x": 435,
        "y": 340,
        "wires": []
    },
    {
        "id": "77cd8e36cc550fba",
        "type": "function",
        "z": "f0ca7ab6.b09058",
        "name": "parse",
        "func": "return { \n    device: msg.payload.device \n}\n",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "x": 650,
        "y": 140,
        "wires": [
            [
                "bcbee5404e5772e3",
                "a6acd4ed6c8067af",
                "ed3893bbec81cf62",
                "6770cf1cd3b6b947",
                "d314a67f40ba1a02",
                "dc2c37014fe667c9",
                "33dfcfc672d1c3a7"
            ]
        ]
    },
    {
        "id": "bcbee5404e5772e3",
        "type": "debug",
        "z": "f0ca7ab6.b09058",
        "name": "serial-number",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "device.serialNumber",
        "targetType": "msg",
        "statusVal": "",
        "statusType": "auto",
        "x": 920,
        "y": 140,
        "wires": []
    },
    {
        "id": "a6acd4ed6c8067af",
        "type": "debug",
        "z": "f0ca7ab6.b09058",
        "name": "address",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "device.address",
        "targetType": "msg",
        "statusVal": "",
        "statusType": "auto",
        "x": 900,
        "y": 180,
        "wires": []
    },
    {
        "id": "ed3893bbec81cf62",
        "type": "debug",
        "z": "f0ca7ab6.b09058",
        "name": "netmask",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "device.netmask",
        "targetType": "msg",
        "statusVal": "",
        "statusType": "auto",
        "x": 900,
        "y": 220,
        "wires": []
    },
    {
        "id": "6770cf1cd3b6b947",
        "type": "debug",
        "z": "f0ca7ab6.b09058",
        "name": "gateway",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "device.gateway",
        "targetType": "msg",
        "statusVal": "",
        "statusType": "auto",
        "x": 900,
        "y": 260,
        "wires": []
    },
    {
        "id": "d314a67f40ba1a02",
        "type": "debug",
        "z": "f0ca7ab6.b09058",
        "name": "MAC",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "device.MAC",
        "targetType": "msg",
        "statusVal": "",
        "statusType": "auto",
        "x": 890,
        "y": 300,
        "wires": []
    },
    {
        "id": "dc2c37014fe667c9",
        "type": "debug",
        "z": "f0ca7ab6.b09058",
        "name": "version",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "device.version",
        "targetType": "msg",
        "statusVal": "",
        "statusType": "auto",
        "x": 900,
        "y": 340,
        "wires": []
    },
    {
        "id": "33dfcfc672d1c3a7",
        "type": "debug",
        "z": "f0ca7ab6.b09058",
        "name": "date",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "device.date",
        "targetType": "msg",
        "statusVal": "",
        "statusType": "auto",
        "x": 890,
        "y": 380,
        "wires": []
    },
    {
        "id": "7907b26632aa9585",
        "type": "inject",
        "z": "f0ca7ab6.b09058",
        "name": "test",
        "props": [
            {
                "p": "payload"
            },
            {
                "p": "topic",
                "vt": "str"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "{\"controller\":{\"id\":405419896,\"address\":\"192.168.1.100:60005\",\"protocol\":\"udp\"}}",
        "payloadType": "json",
        "x": 130,
        "y": 280,
        "wires": [
            [
                "b444ecc8cd9e9e27"
            ]
        ]
    },
    {
        "id": "b444ecc8cd9e9e27",
        "type": "uhppoted-get-device",
        "z": "f0ca7ab6.b09058",
        "name": "get-device-udp",
        "topic": "",
        "config": "cf35d9904542f0af",
        "x": 300,
        "y": 280,
        "wires": [
            [
                "8e7108f04cd8776c"
            ]
        ]
    },
    {
        "id": "c9ba98324d709510",
        "type": "link in",
        "z": "f0ca7ab6.b09058",
        "name": "get-device",
        "links": [
            "12f787080589ccfc",
            "1b475bda78fb39d0",
            "688b8a5c31e70755",
            "68a62e02b458d87a",
            "8e7108f04cd8776c"
        ],
        "x": 545,
        "y": 140,
        "wires": [
            [
                "77cd8e36cc550fba"
            ]
        ]
    },
    {
        "id": "8e7108f04cd8776c",
        "type": "link out",
        "z": "f0ca7ab6.b09058",
        "name": "get-device-tcp",
        "mode": "link",
        "links": [
            "c9ba98324d709510",
            "d4b1333ba9b35b8a"
        ],
        "x": 435,
        "y": 280,
        "wires": []
    },
    {
        "id": "d0433ad1abb259af",
        "type": "debug",
        "z": "f0ca7ab6.b09058",
        "name": "received",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "true",
        "targetType": "full",
        "statusVal": "",
        "statusType": "auto",
        "x": 660,
        "y": 100,
        "wires": []
    },
    {
        "id": "8eea63a051584518",
        "type": "inject",
        "z": "f0ca7ab6.b09058",
        "name": "test",
        "props": [
            {
                "p": "payload"
            },
            {
                "p": "topic",
                "vt": "str"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "{\"deviceId\":405419896}",
        "payloadType": "json",
        "x": 130,
        "y": 100,
        "wires": [
            [
                "04d53bdd0db24ab4"
            ]
        ]
    },
    {
        "id": "04d53bdd0db24ab4",
        "type": "uhppoted-get-device",
        "z": "f0ca7ab6.b09058",
        "name": "get-device-legacy",
        "topic": "",
        "config": "cf35d9904542f0af",
        "x": 310,
        "y": 100,
        "wires": [
            [
                "12f787080589ccfc"
            ]
        ]
    },
    {
        "id": "d4b1333ba9b35b8a",
        "type": "link in",
        "z": "f0ca7ab6.b09058",
        "name": "received",
        "links": [
            "12f787080589ccfc",
            "1b475bda78fb39d0",
            "688b8a5c31e70755",
            "68a62e02b458d87a",
            "8e7108f04cd8776c",
            "c41805c593310279"
        ],
        "x": 545,
        "y": 100,
        "wires": [
            [
                "d0433ad1abb259af"
            ]
        ]
    },
    {
        "id": "12f787080589ccfc",
        "type": "link out",
        "z": "f0ca7ab6.b09058",
        "name": "get-device-udp",
        "mode": "link",
        "links": [
            "d4b1333ba9b35b8a",
            "c9ba98324d709510"
        ],
        "x": 435,
        "y": 100,
        "wires": []
    },
    {
        "id": "788454f09e3c4e50",
        "type": "inject",
        "z": "f0ca7ab6.b09058",
        "name": "test",
        "props": [
            {
                "p": "payload"
            },
            {
                "p": "topic",
                "vt": "str"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "{\"deviceId\": 303986753}",
        "payloadType": "json",
        "x": 130,
        "y": 160,
        "wires": [
            [
                "a7aec5717bc8eb34"
            ]
        ]
    },
    {
        "id": "a7aec5717bc8eb34",
        "type": "uhppoted-get-device",
        "z": "f0ca7ab6.b09058",
        "name": "get-device-config",
        "topic": "",
        "config": "cf35d9904542f0af",
        "x": 310,
        "y": 160,
        "wires": [
            [
                "688b8a5c31e70755"
            ]
        ]
    },
    {
        "id": "688b8a5c31e70755",
        "type": "link out",
        "z": "f0ca7ab6.b09058",
        "name": "get-device-udp",
        "mode": "link",
        "links": [
            "c9ba98324d709510",
            "d4b1333ba9b35b8a"
        ],
        "x": 435,
        "y": 160,
        "wires": []
    },
    {
        "id": "5603fe59a9e7d4e7",
        "type": "inject",
        "z": "f0ca7ab6.b09058",
        "name": "test",
        "props": [
            {
                "p": "payload"
            },
            {
                "p": "topic",
                "vt": "str"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "{}",
        "payloadType": "json",
        "x": 130,
        "y": 440,
        "wires": [
            [
                "88eed9cbca02b804"
            ]
        ]
    },
    {
        "id": "88eed9cbca02b804",
        "type": "uhppoted-get-devices",
        "z": "f0ca7ab6.b09058",
        "name": "",
        "topic": "",
        "config": "cf35d9904542f0af",
        "x": 290,
        "y": 440,
        "wires": [
            [
                "c41805c593310279"
            ]
        ]
    },
    {
        "id": "c41805c593310279",
        "type": "link out",
        "z": "f0ca7ab6.b09058",
        "name": "get-device-tcp",
        "mode": "link",
        "links": [
            "d4b1333ba9b35b8a"
        ],
        "x": 435,
        "y": 440,
        "wires": []
    }
]