[
    {
        "id": "1c77d55313bd72f1",
        "type": "tab",
        "label": "MQTT Bridge",
        "disabled": false,
        "info": "",
        "env": []
    },
    {
        "id": "2f24791e93d6f4e3",
        "type": "aedes broker",
        "z": "1c77d55313bd72f1",
        "name": "",
        "mqtt_port": 1883,
        "mqtt_ws_bind": "port",
        "mqtt_ws_port": "",
        "mqtt_ws_path": "",
        "cert": "",
        "key": "",
        "certname": "",
        "keyname": "",
        "persistence_bind": "memory",
        "dburl": "",
        "usetls": false,
        "credentials": {
            "username": "",
            "password": "",
            "certdata": "",
            "keydata": ""
        },
        "x": 110,
        "y": 40,
        "wires": [
            [],
            []
        ]
    },
    {
        "id": "947f2bdeea35516a",
        "type": "mqtt out",
        "z": "1c77d55313bd72f1",
        "name": "",
        "topic": "",
        "qos": "2",
        "retain": "true",
        "respTopic": "",
        "contentType": "",
        "userProps": "",
        "correl": "",
        "expiry": "",
        "broker": "0d064da63e30d8af",
        "x": 510,
        "y": 120,
        "wires": []
    },
    {
        "id": "1cc7dbcc7846c727",
        "type": "function",
        "z": "1c77d55313bd72f1",
        "name": "",
        "func": "var out = [];\nfor (let i in msg.payload) {\n    if (msg.payload[i] != null) {\n        var newmsg = {};\n        newmsg.topic = msg.topic + \"/\" + i;\n        newmsg.payload = msg.payload[i];\n        out.push(newmsg);\n    }\n}\nreturn [out];",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 320,
        "y": 200,
        "wires": [
            [
                "947f2bdeea35516a"
            ]
        ]
    },
    {
        "id": "7fde915300192ca4",
        "type": "mqtt in",
        "z": "1c77d55313bd72f1",
        "name": "Airthings",
        "topic": "",
        "qos": "0",
        "datatype": "json",
        "broker": "091d9499ab358dd4",
        "nl": false,
        "rap": true,
        "rh": 0,
        "inputs": 0,
        "x": 80,
        "y": 120,
        "wires": [
            [
                "947f2bdeea35516a",
                "1cc7dbcc7846c727",
                "ce3410acb235201c"
            ]
        ]
    },
    {
        "id": "ce3410acb235201c",
        "type": "debug",
        "z": "1c77d55313bd72f1",
        "name": "debug 1",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "false",
        "statusVal": "",
        "statusType": "auto",
        "x": 320,
        "y": 40,
        "wires": []
    },
    {
        "id": "0d064da63e30d8af",
        "type": "mqtt-broker",
        "name": "localhost",
        "broker": "localhost",
        "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": {},
        "userProps": "",
        "sessionExpiry": ""
    },
    {
        "id": "091d9499ab358dd4",
        "type": "mqtt-broker",
        "name": "Airthings",
        "broker": "mqtt.airthings.com",
        "port": "8883",
        "tls": "87239e398f91a288",
        "clientid": "",
        "autoConnect": true,
        "usetls": true,
        "protocolVersion": "4",
        "keepalive": "60",
        "cleansession": true,
        "birthTopic": "",
        "birthQos": "0",
        "birthPayload": "",
        "birthMsg": {},
        "closeTopic": "",
        "closeQos": "0",
        "closePayload": "",
        "closeMsg": {},
        "willTopic": "",
        "willQos": "0",
        "willPayload": "",
        "willMsg": {},
        "userProps": "",
        "sessionExpiry": ""
    },
    {
        "id": "87239e398f91a288",
        "type": "tls-config",
        "name": "Airthings",
        "cert": "",
        "key": "",
        "ca": "",
        "certname": "",
        "keyname": "",
        "caname": "",
        "servername": "",
        "verifyservercert": true,
        "alpnprotocol": ""
    }
]