[ { "id": "90c6b92a167ccfd0", "type": "function", "z": "da2dcbd43ca4205b", "name": "function 18", "func": "msg.broker = {\"broker\":\"broker.hivemq.com\",\"port\":1883};\nmsg.action = \"connect\";\nmsg.topic = \"joshworld\";\nmsg.key = \"32wf43eg\";\nreturn msg;", "outputs": 1, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 930, "y": 140, "wires": [ [ "66b1ad13cb265281" ] ] }, { "id": "66b1ad13cb265281", "type": "mqtt in", "z": "da2dcbd43ca4205b", "name": "", "topic": "", "qos": "2", "datatype": "auto-detect", "broker": "8a6b74c0.3c461", "nl": false, "rap": true, "rh": 0, "inputs": 1, "x": 1130, "y": 140, "wires": [ [ "11fbaa32576de64f" ] ] }, { "id": "3ae59f4eb19407ae", "type": "inject", "z": "da2dcbd43ca4205b", "name": "", "props": [ { "p": "payload" }, { "p": "topic", "vt": "str" } ], "repeat": "", "crontab": "", "once": false, "onceDelay": 0.1, "topic": "", "payload": "", "payloadType": "date", "x": 780, "y": 100, "wires": [ [ "90c6b92a167ccfd0", "dd2ae0d3db44925e" ] ] }, { "id": "11fbaa32576de64f", "type": "debug", "z": "da2dcbd43ca4205b", "name": "debug 54", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "true", "targetType": "full", "statusVal": "", "statusType": "auto", "x": 1320, "y": 140, "wires": [] }, { "id": "7d4e46fa8e71c57a", "type": "mqtt out", "z": "da2dcbd43ca4205b", "name": "", "topic": "", "qos": "", "retain": "", "respTopic": "", "contentType": "", "userProps": "", "correl": "", "expiry": "", "broker": "6e285b2a03cfa258", "x": 1130, "y": 280, "wires": [] }, { "id": "72b84df48b0acf5a", "type": "inject", "z": "da2dcbd43ca4205b", "name": "", "props": [ { "p": "payload" }, { "p": "topic", "vt": "str" } ], "repeat": "", "crontab": "", "once": false, "onceDelay": 0.1, "topic": "joshworld", "payload": "", "payloadType": "date", "x": 950, "y": 280, "wires": [ [ "7d4e46fa8e71c57a" ] ] }, { "id": "dd2ae0d3db44925e", "type": "function", "z": "da2dcbd43ca4205b", "name": "function 19", "func": "msg.broker = {\"broker\":\"broker.hivemq.com\",\"port\":1883};\nmsg.action = \"subscribe\";\nmsg.topic = \"joshworld\";\nmsg.key = \"32wf43eg\";\nreturn msg;", "outputs": 1, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 930, "y": 200, "wires": [ [ "66b1ad13cb265281" ] ] }, { "id": "8a6b74c0.3c461", "type": "mqtt-broker", "name": "localhost:1883", "broker": "192.168.1.51", "port": "1883", "clientid": "", "autoConnect": false, "usetls": false, "protocolVersion": "5", "keepalive": "60", "cleansession": true, "birthTopic": "", "birthQos": "0", "birthRetain": "false", "birthPayload": "", "birthMsg": {}, "closeTopic": "", "closePayload": "", "closeMsg": {}, "willTopic": "", "willQos": "0", "willRetain": "false", "willPayload": "", "willMsg": {}, "sessionExpiry": "" }, { "id": "6e285b2a03cfa258", "type": "mqtt-broker", "name": "", "broker": "broker.hivemq.com", "port": "1883", "clientid": "", "autoConnect": true, "usetls": false, "protocolVersion": "4", "keepalive": "60", "cleansession": true, "birthTopic": "", "birthQos": "0", "birthPayload": "", "birthMsg": {}, "closeTopic": "", "closeQos": "0", "closePayload": "", "closeMsg": {}, "willTopic": "", "willQos": "0", "willPayload": "", "willMsg": {}, "sessionExpiry": "" } ]