Skip to content

using set with retained messages #281

@Tieske

Description

@Tieske

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions