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

[Darwin] Open Commissioning Window APIs need to be async #18527

Closed
sagar-apple opened this issue May 17, 2022 · 1 comment · Fixed by #22521
Closed

[Darwin] Open Commissioning Window APIs need to be async #18527

sagar-apple opened this issue May 17, 2022 · 1 comment · Fixed by #22521
Assignees

Comments

@sagar-apple
Copy link
Contributor

Problem

The current openPairingWindow and openPairingWindowWithPIN APIs exposed to Darwin clients are not really usable.
These APIs are synchronous and will always succeed.

For example, repeated calls to openPairingWindowWithPIN appear to work whereas the server cannot honor these until the previous duration has expired and so it returns an error. That error is never returned to the Darwin client.

Proposed Solution

We should make these async since they represent a remote request on the server

@bzbarsky-apple
Copy link
Contributor

The changes for #22420 will likely fix this.

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

Successfully merging a pull request may close this issue.

3 participants