[ { "id": "f3330749.8061e", "type": "ttn uplink", "z": "980fd97e.eec538", "name": "", "app": "7a40221e.53831c", "dev_id": "proto00", "field": "", "x": 220, "y": 160, "wires": [ [ "f23159fd.a06958" ] ] }, { "id": "f23159fd.a06958", "type": "debug", "z": "980fd97e.eec538", "name": "", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "true", "x": 430, "y": 160, "wires": [] }, { "id": "e82d52ab.212c9", "type": "inject", "z": "980fd97e.eec538", "name": "", "topic": "", "payload": "true", "payloadType": "bool", "repeat": "", "crontab": "", "once": false, "onceDelay": 0.1, "x": 210, "y": 240, "wires": [ [ "fa3ba7ca.e54d5" ] ] }, { "id": "2bd5cb7d.7df3bc", "type": "inject", "z": "980fd97e.eec538", "name": "", "topic": "", "payload": "false", "payloadType": "bool", "repeat": "", "crontab": "", "once": false, "onceDelay": 0.1, "x": 210, "y": 280, "wires": [ [ "fa3ba7ca.e54d5" ] ] }, { "id": "fa3ba7ca.e54d5", "type": "function", "z": "980fd97e.eec538", "name": "", "func": "return {\n dev_id: \"proto00\",\n port: 1,\n schedule: \"replace\",\n confirmed: false,\n payload: \"AA==\"\n}", "outputs": 1, "noerr": 0, "x": 380, "y": 260, "wires": [ [ "f23159fd.a06958", "f9dcb3a2.dad0c" ] ] }, { "id": "f9dcb3a2.dad0c", "type": "ttn downlink", "z": "980fd97e.eec538", "name": "", "app": "7a40221e.53831c", "dev_id": "proto00", "port": "", "confirmed": false, "schedule": "replace", "x": 550, "y": 260, "wires": [] }, { "id": "24fda450.8536c4", "type": "mqtt out", "z": "980fd97e.eec538", "name": "", "topic": "lora-upc-school/devices/proto00/down", "qos": "2", "retain": "false", "broker": "ce08818a.299658", "x": 670, "y": 480, "wires": [] }, { "id": "a07c26e2.332f6", "type": "inject", "z": "980fd97e.eec538", "name": "", "topic": "", "payload": "false", "payloadType": "bool", "repeat": "", "crontab": "", "once": false, "onceDelay": 0.1, "x": 150, "y": 480, "wires": [ [ "e5e15295.c7d9e8" ] ] }, { "id": "e5e15295.c7d9e8", "type": "function", "z": "980fd97e.eec538", "name": "", "func": "msg.payload = {\n port: 1,\n confirmed: false,\n payload_raw: \"AA==\"\n};\n\nreturn msg;", "outputs": 1, "noerr": 0, "x": 290, "y": 480, "wires": [ [ "e17bb665.30a22" ] ] }, { "id": "15d9911.42865ef", "type": "mqtt in", "z": "980fd97e.eec538", "name": "", "topic": "#", "qos": "2", "broker": "ce08818a.299658", "x": 150, "y": 540, "wires": [ [ "40adde1c.16a9" ] ] }, { "id": "40adde1c.16a9", "type": "debug", "z": "980fd97e.eec538", "name": "", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "true", "x": 290, "y": 540, "wires": [] }, { "id": "e17bb665.30a22", "type": "json", "z": "980fd97e.eec538", "name": "", "property": "payload", "action": "", "pretty": false, "x": 430, "y": 480, "wires": [ [ "24fda450.8536c4" ] ] }, { "id": "7a40221e.53831c", "type": "ttn app", "z": "", "appId": "lora-upc-school", "accessKey": "ttn-account-v2.d0LKdNaYgLOi9xInxdutx1vMkt6oJZjywJO9FMsu6eE", "discovery": "discovery.thethingsnetwork.org:1900" }, { "id": "ce08818a.299658", "type": "mqtt-broker", "z": "", "name": "eu.thethings.network", "broker": "eu.thethings.network", "port": "1883", "clientid": "", "usetls": false, "compatmode": true, "keepalive": "60", "cleansession": true, "birthTopic": "", "birthQos": "0", "birthPayload": "", "closeTopic": "", "closeQos": "0", "closePayload": "", "willTopic": "", "willQos": "0", "willPayload": "" } ]