Limit MQTT traffic

Begonnen von tomaszG, 28 Februar 2019, 11:50:56

Vorheriges Thema - Nächstes Thema

tomaszG

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

Beta-User

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/#"
Server: HP-elitedesk@Debian 12, aktuelles FHEM@ConfigDB | CUL_HM (VCCU) | MQTT2: MiLight@ESP-GW, BT@OpenMQTTGw | MySensors: seriell, v.a. 2.3.1@RS485 | ZWave | ZigBee@deCONZ | SIGNALduino | MapleCUN | RHASSPY
svn: u.a MySensors, Weekday-&RandomTimer, Twilight,  div. attrTemplate-files