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, ...
    • MQTT - Process data, Publish it and Subscribe to a topic

      In this tutorial, you will learn how to process data, publish to a topic, and subscribe to it. We will be using the MQTTX client throughout this tutorial. Connecting to TagoIO MQTT Broker To publish a topic via TagoIO's MQTT, you must first add a ...
    • 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 Retain on TagoIO Broker

      TagoIO's MQTT broker, while not designed to support the native retain feature found in standard MQTT protocol implementations, we offer a workaround to achieve similar functionality. This approach involves utilizing Analysis and Actions features to ...