MQTT Generic Thing: java.lang.Exception: No MQTT client

To avoid restarting when you often redefining things, you can separate definition of broker and thing…
Example:
bridge.things
Bridge mqtt:broker:broker “MQTT Broker: Mosquitto”
[
host=“192.168.2.1”,
port=1883,
secure=“false”
]
temp.things
Thing mqtt:topic:miTemp (mqtt:broker:broker) {
Channels:
Type number : tempObyvak “Air Temperature” [ stateTopic=“sensor/teplota/obyvak”]
}

4 Likes