Skip to content

Use question regarding sleeping devices #3

@GregSawin

Description

@GregSawin

I've recently added power saving sleep calls to my devices and one issue I have is that messages are held up until after it wakes up. I was thinking I could loop for a few seconds and check some status to see if any messages were still waiting to be sent. I don't see any public methods or fields that would allow for this though. Am I overlooking something or perhaps there's a better way to do this?
Ideally a way to burst out any remaining messages as the device is going to sleep so it doesn't matter if it takes 4sec to recover. I wouldn't want to wait too long, ie if not connected, and would likely clear any events that didn't publish before sleeping.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions