MQTT Output Node

      MQTT Output Node


        Article summary

        MQTT Output Node

        The MQTT Output node sends data to devices using the MQTT communication protocol. A single MQTT node can send data for all the devices in your solution.

        MQTT is a lightweight protocol well suited to embedded devices with limited connectivity. It is the preferred communication mechanism between your devices and the Rayven platform. 

        The IP address of the Rayven MQTT broker is 52.169.16.32

        Adding an MQTT Output node to your workflow

        1. First, select your desired solution and navigate to Rayven Workflow.
        2. Select ‘Outputs’ from the left-hand panel.
        3. Find the MQTT Output node and drag it onto the canvas.
        4. Provide input to the MQTT Output node by connecting it to another node
        5. Double click on the MQTT Output node to open its configuration window.

        Configuring your MQTT Output node

        1. First, give your node a Name. Choose something simple that clearly explains its purpose.
        2. Select your Broker Type from the drop-down menu:
          • TCP,
          • TLS,
          • WebSockets,
          • Secure WebSockets.
        3. Enter a Username. The hardware username must match this value for the node to receive data. You must enter a string with a length greater than 0.
        4. Each MQTT node generates a unique Topic ID that you cannot change. You must send data to Rayven in the following format:
          • [[topic_ID]]/[[device_ID]]
          • I.e., you must append the unique Device ID to the Topic ID. Note the slash after the Topic ID. 
        5. You can also optionally configure a Client ID and/or a Password.

        Once you have configured the MQTT Output node, click Activate and then Save. It is now ready to receive data from the workflow.

        See Also: Adding devices
        As of Release: 14/10/21


        What's Next