MQTT trigger#
NOTE: MQTT trigger is in tech-preview.
Reads messages from MQTT topics.
Attributes#
Path |
Type |
Description |
|---|---|---|
subscriptions |
subscription (topic, qos) |
An MQTT subscription |
Example#
triggers:
myMqttTrigger:
kind: "mqtt"
url: "10.0.0.3:1883"
attributes:
subscriptions:
- topic: house/living-room/temperature
qos: 0
- topic: weather/humidity
qos: 0
Event#
The MQTT trigger emits an event object with the following attributes:
URL: The URL of the MQTT brokertopic: The topic of the messagepath: The topic of the message (alias fortopic)body: The message payloadid: The message id