FHEM Forum

FHEM - Hausautomations-Systeme => MQTT => Thema gestartet von: tomaszG am 28 Februar 2019, 11:50:56

Titel: Limit MQTT traffic
Beitrag von: tomaszG am 28 Februar 2019, 11:50:56
Dear all,

I have been using MQTT2_CLIENT for   while and noticed that the data traffic was higher than I expected. I then saw in the reference that MQTT_CLIENT2 will subscribe to all topics by default (which I then confirmed by looking at my Mosquitto broker logs). What should I do to make sure the MQTT2_CLIENT received no messages.

I found

attr mqtt_id subscriptions #

but I am not certain what to use instead of #

Thx
Titel: Antw:Limit MQTT traffic
Beitrag von: Beta-User am 28 Februar 2019, 12:49:24
Did you have a look in commandref of MQTT2_CLIENT? (Hope there's more info n that).

Short unaproofed assumption: this seems to be "ordinary" mqtt language. So "#" stands for "everything". To restrict to a specific subtree, you might use sth. like "+/myhouse/#" or "myotherhouse/#"