Rubix Wires: Protocols/MQTT Nodes
This article describes the Rubix Wires nodes that are in the Protocols/MQTT category.
Protocols/MQTT
The `Protocols/MQTT` category contains nodes that are used in sending and receiving data using the MQTT standard protocol.
Client
This node connects to a configured MQTT Broker. It allows data to be sent and received over multiple topics from the same broker. The number of topics can be configured from settings.
- enable - Boolean input that enables the connection to MQTT Broker when `true` and disables the connection when `false`.
- 1 | - Topic 1 input. Any data type.
- x | - x-th topic input. Any data type. The number of topic inputs can be configured from Settings.
Outputs
- connected - Boolean output value, `true` if successfully connected to MQTT Broker and `false` if connection cannot be established.
- | 1 - Topic 1 output value.
- | x - x-th topic output value. The number of topic inputs can be configured from Settings.
Settings
- Name - Name of the node.
- Enable - Toggle switch to enable or disable the node.
- Don't use env settings - Toggle switch to select whether or not to use the MQTT Broker details configured in the .env file configured from Rubix platform. If the .env file is not configured with the MQTT Broker details then manual configuration of MQTT must be set.
- When `don't use env setings` enabled:
- Use authentication - Toggle switch to enable or disable the use of authentication on the MQTT broker.
- Broker URL - URL/Host of the MQTT broker.
- Broker port - Port number of the MQTT broker.
- User name - User name of the MQTT broker if authentication is enabled.
- Password - Password of the MQTT broker if authentication is enabled.
- Number of Topics - Number of topics required.
- Decimal Places (Numerics) - Decimal precision of numeric topics required.
- Output Type - Drop-down to select output type of topics. Can be the payload delivered to the MQTT broker, or can be JSON formatted string.
Operation
This node connects to a configured MQTT Broker, subscribes to topics, and can publish values to topics. Once configured (in Settings) with a valid ‘Broker URL’, ‘Broker Port’, and ‘Authentication’ (if required), this node will read and write to MQTT topics when ‘enable’ is ‘true’. Number of topics, and the topic names can be configured from Settings. Each topic will have a corresponding input and output.
Topic Builder
This node combines string inputs into a `/` seperated MQTT topic. The number of string inputs can be configured from Settings
- string 1 - First string input value. Start of the `output` MQTT topic.
- string 2 - Second string input value.
- string x - x-th string input value. The number of string inputs can be configured from Settings.
Outputs
- output - MQTT topic string output made from adding `/` between each of the string inputs.
Settings
- Name - Name of the node.
- Input count - Number of inputs required.
- string 1 / string2 / string x / ... - Fallback for wired input string values.
Operation
This node takes String inputs and concatenates/joins them with `/` to
produce an MQTT Topic ‘output’. The number of inputs can be modified
from Settings.
Related Articles:
- Rubix Wires: Getting Started Guide
Related Articles
Rubix Wires: LoRa Sensor Nodes
This article describes the Rubix Wires nodes that are in the LoRa category. Preparation Rubix Wires: Getting Started Guide Rubix Platform: Adding and Editing Wireless LoRa Droplet Sensors Rubix Platform: Adding and Editing Wireless Microedge Sensors ...
Rubix Wires: Latch Nodes
This article describes the Rubix Wires nodes that are in the Latch category. Latch The `Latch` category contains value latching functionality for each data type. Latch nodes will maintain an output value between trigger events. Any-Latch This node ...
Rubix Wires: Switch Nodes
This article describes the Rubix Wires nodes that are in the Switch category. Switch The `Switch` category contains nodes that are used to direct the flow of data. They can be though of like train track switches, controlling which track the train ...
Rubix Wires: HVAC Nodes
This article describes the Rubix Wires nodes that are in the HVAC category. HVAC The HVAC Nodes are a wide variety of nodes that perform HVAC related functions. This includes setpoint and equipment control functions, fault monitoring, psychometric ...
Rubix Wires: Node Reference Guide
This article provides links to the descriptions of each Rubix Wires Node, grouped by category. Preparation Rubix Wires: Getting Started Guide Rubix Wires: Working with Nodes Rubix Wires: Flow Programming Rubix Wires Node Categories The following ...