controller: properties sometimes have no payload if not updated at runtime
Closed this issue · 1 comments
afflux commented
Core issue is this:
mijia-homie/homie-controller/src/lib.rs
Lines 514 to 516 in e7e0229
I have a node that updates very rarely. After restart of the controller, my broker publishes the retained payload topic before the node's $properties attribute, causing those payloads to get lost.
I'd suggest not to subscribe to wildcards, instead subscribe explicitly to the attributes, then to the payloads as discovered.
qwandor commented
I've pushed homie-controller
0.7.0 to crates.io with your fix for this.