This commit is contained in:
Joel Wetzell
2026-05-17 21:12:04 -05:00
parent 69bc31d3f1
commit 8e6cd58006
82 changed files with 642 additions and 450 deletions
+8 -6
View File
@@ -1,20 +1,22 @@
---
title: MQTT Client
sidebar:
label: Client
order: 1
label: Client
order: 1
---
The `mqtt.client` module connects to a MQTT broker and emits a message messages based on the subscribed topic it receives from the port. This module is also capable of publishing MQTT messages to the connected broker.
- **type**: `mqtt.client`
- **params**:
- **broker**: connection string for the mqtt broker (`mqtt://test.mosquitto.org:1833`)
- **topic** mqtt topic to subscribe to
- **clientId** client ID for this connection to the broker
- **broker**: connection string for the mqtt broker (`mqtt://test.mosquitto.org:1833`)
- **topic** mqtt topic to subscribe to
- **clientId** client ID for this connection to the broker
### Example
Open a mqtt connection to `test.mosquitto.org` subscribing to the `showbridge` topic.
```yaml
- id: mqttClient
type: mqtt.client
@@ -22,4 +24,4 @@ Open a mqtt connection to `test.mosquitto.org` subscribing to the `showbridge` t
broker: "mqtt://test.mosquitto.org:1833"
topic: showbridge
clientId: showbridge
```
```