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

Improve the open commissioning window command #752

Merged
merged 1 commit into from
Jun 13, 2024

Conversation

agners
Copy link
Collaborator

@agners agners commented Jun 13, 2024

Check if the commissioning window is indeed open before returning cached values. This is to prevent returning stale values when the commissioning window got closed, either because the device got successfully commissioned with another network or because the commissioning window got closed due to an error in attempting to commission. Especially the latter case leads to very bad user experience as folks try to use the stale (non-working) commissioning code for the next 10 minutes and get frustrated.

While at it, also close the commissioning window if someone else opened it and we can't provide credentials.

Check if the commissioning window is indeed open before returning
cached values. This is to prevent returning stale values when the
commissioning window got closed, either because the device got
successfully commissioned with another network or because the
commissioning window got closed due to an error in attempting to
commission. Especially the latter case leads to very bad user
experience as folks try to use the stale (non-working) commissioning
code for the next 10 minutes and get frustrated.
@agners agners added the maintenance Code (quality) improvement or small enhancement which not a new feature label Jun 13, 2024
Copy link
Contributor

@marcelveldt marcelveldt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

@agners agners merged commit cd68b1e into main Jun 13, 2024
4 checks passed
@agners agners deleted the improve-open-commissioning-window-command branch June 13, 2024 09:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
maintenance Code (quality) improvement or small enhancement which not a new feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants