MQTT Transmit

A mqtt data transmit transfers data to the mqtt broker.

Example:

If we want to upload our records from the bathhouse:water stream to our IOT cloud, broker.emqx.io with port 443 our configuration will look something like this:

{
    "data_transmit": [
        {
            "transmit_name": "iot_hub_transmit",
            "transmit_type" : "mqtt",
            "filter_stream": [
                "bathhouse:water"
            ],
            "host": "broker.emqx.io",
            "port": 443,
            "username": "spiderman",
            "password": "somepowerfullpass",
            "topic": "some_topic",
            "client_id": "some_client_id"
        }
    ]
}
Warning:

This plugin is very sensitive to upload bandwidth: if it can’t upload a payload completely within the timeout, it will abort the connection and try again. You may need to increase the timeout from the default of two minutes. For example:

{
    "transmit_name": "SightMachine",
    "transmit_type": "mqtt"
    "filter_stream": ["*"],
    "timeout": 300
}