I have read with interest the various posts regarding white-list retention and have been experiencing that the white-list periodically loses its retained status. For example, the following topic:
BLU/theengs_pl01/commands/MQTTtoBT/config -m '{“white-list”: [xxxxx }
xxxx included for brevity.
periodically gets over-written by the topic:
BLU/theengs_pl01/commands/MQTTtoBT/config -m '{“enabled”:true}
And when this happens, my white-list on whatever Theengs device it occurs on stops working and I have to manually re-publish the config:white-list topic.
I have 3 Theengs gateway devices. One theengs-bridge-v11 (v1.70 with v1.75 firmware) and 2 theengs-plugs (v1.70).
On each I have set the white-list in the format as follows:
mosquitto_pub -t BLU/theengs_pl01/commands/MQTTtoBT/config -m '{“white-list”: [
“1F:64:09:83:88:B8”,
“1F:64:09:71:8C:22”,
“1C:9F:25:50:C4:27”,
“1C:9F:25:31:68:5C”,
“1C:9F:25:53:C0:76”,
“D2:38:30:33:58:71”,
“CE:38:30:33:67:40”,
“3C:2E:F5:BD:77:1A”,
“B0:C7:DE:BC:3B:EA”,
“E8:E0:7E:D0:99:31”,
“1C:9F:25:31:C0:CB”
],
“ignoreWBlist”: false
}’ -r
I can then confirm in the broker that these are in fact retained. I can also see they are retained in MQTT Explorer. The gateways are then only publishing data from the white-listed MAC addresses. All good!
But at some indeterminant time in the future, it could be hours or days, something publishes the topic
BLU/theengs_pl01/commands/MQTTtoBT/config -m '{“enabled”:true}
Which then becomes the BLU/xxx/commands/MQTTtoBT/config retained topic and the white-list is gone. This happens to all the three Theengs devices at various times but not at the same time. It makes no sense that the broker would publish it because it should only be publishing its retained message(s). It would seem that some client, or the theengs devices themselves are publishing it. I don’t immediately see a way in either the broker or MQTT Explorer to find out who published the topic.
Any thoughts on this?
Thanks in advance.
Craig.