Trigger by MQTT Topic

Trigger by MQTT Topic

The trigger type, Trigger by Variable, allows you to execute your Action when data is sent to an MQTT topic.

TagoIO has its own MQTT broker that is responsible for pushing data to clients in case something new is published in the specific topics they are subscribed to. To learn more about TagoIO's MQTT system.

There are 2 (two) categories inside of this trigger type:

  1. Single device: Allows you to watch a specific device in your list. Any data that is sent by that device will be tested against your topics to decide if this action should be triggered or not.
  2. Multiple devices: Allows you to watch multiple devices. Any data that is sent by those devices will be tested against your topics to decide if this action should be triggered or not. For this type, you must supply the tag keys and tag values of the devices you want to watch.

Trigger Conditions

After setting up the device, you should set a condition for your action to be executed. To do so, you must head over to the Trigger section.

You can set multiple conditions in an action, if at least one of them results in a match, the action will be executed.

Note that setting up multiple conditions will execute the action only once if any of the conditions are matched. This means that if you send two variables that would trigger the action at same time, it will only trigger one action.

For each row, you need to set the topic that will be listened to. You may use MQTT wildcards for the topic if you prefer.

    • Related Articles

    • MQTT

      MQTT stands for MQ Telemetry Transport; it's an extremely simple and lightweight publish-subscribe messaging protocol. It was designed for constrained devices and low-bandwidth, high-latency or unreliable networks. TagoIO has its own MQTT broker that ...
    • MQTT - Process data, Publish it and Subscribe to a topic

      In this tutorial you are going to learn how to process some data, publish to a topic and subscribe to it. To subscribe to a topic we will use Mqttfx. To download and learn more about Mqttfx go to their website ...
    • MQTT - Publishing and Subscribing

      You can publish to your MQTT topics by coding a script that will run from an Analysis. When the analysis runs, your script can publish a topic that can be received by any device that has subscribed to that specific topic. There are different ways to ...
    • MQTT with Sensor Tag

      This is an example using the SensorTag Bluetooth module from Texas Instruments to send data to TagoIO. There is no code modification needed in the SensorTag side, and as it uses the MQTT protocol, only a configuration setup is needed. For the ...
    • MQTT - Example with MQTT.fx

      This is a tutorial on how to connect to Tago MQTT, subscribe to topics using wildcards and publish to a topic. For this tutorial we will use the software Mqttfx. To download and learn more about Mqttfx go to their ...

        Take a look at our updated roadmap here!
          What would you like to see on TagoIO?

            Future and past Webinars