Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use question regarding sleeping devices #3

Open
GregSawin opened this issue Mar 31, 2019 · 0 comments
Open

Use question regarding sleeping devices #3

GregSawin opened this issue Mar 31, 2019 · 0 comments

Comments

@GregSawin
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant