-
Notifications
You must be signed in to change notification settings - Fork 62
using set with retained messages #281
Copy link
Copy link
Open
Description
For battery driven devices, it makes sense that set topics are retained. So instead of reinventing the loop of checking availability and only sending if awake in the Homie controller, we can actually use the logic that MQTT already provides.
Maybe, if the device is sleeping, then the retain flag is allowed? or would this lead to race-conditions due to MQTT timing?
Also does a later non-retained message delete it again to ensure we cleanup after it? if not how to clean?
Requires devices to not reconnect using a "clean" session, otherwise they would get the same command over and over again every time they go online.
Seems like a device must specify this in its description. Probably an additional property is required.
We can do this past 5.0
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels