MQTT Publisher
Node ID: mqttPublisher · Role: Sink · Realtime config: no
Description
Publishes pipeline data to an MQTT broker topic as JSON. Useful for integrating FusionHub with IoT dashboards, remote consumers, or message-based architectures.
Inputs / Outputs
- Inputs: (none)
- Outputs: (none)
Config aliases
MqttSink, mqttSink, mqttPublisher
Properties
Each row shows the setting’s label in the node’s Properties panel and, in code, its key in the node’s settings object in the config file. A setting omitted from the config file uses the default shown here.
| Property | Type | Default | Description |
|---|---|---|---|
Host host | string | localhost | Hostname or IP of the MQTT broker. |
Port port | number | 1883 | MQTT broker TCP port. |
Topic topic | string | fusionhub/output | Topic to publish incoming data to. |
Example node definition
A minimal entry in config.json looks like the block below. Paste it under the sinks key, keyed by an instance name of your choice. All settings are optional: anything not listed under settings uses the default from the Properties table above. See The configuration file for how the sections and endpoint wiring work.
{
"sinks": {
"mqttPublisher": {
"inputEndpoints": [],
"settings": {}
}
}
}