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

Changes from PR 22104 break commissioning flows where the network info is provided later #22195

Closed
bzbarsky-apple opened this issue Aug 26, 2022 · 4 comments
Labels
commissioning Involves placing devices on the network, initial setup V1.0

Comments

@bzbarsky-apple
Copy link
Contributor

bzbarsky-apple commented Aug 26, 2022

Problem

#22104 changed things so we do only on-network discovery if we don't have network credentials at commissioning start.

But the infrastructure @chrisdecenzo put in place allows providing the network credentials later, async, after performing a scan for available networks, etc. It's no longer possible to provide those credentials after start of commissioning when using the "commission by pairing code" APIs (as opposed to the "create PASE session by pairing code, then commission by device id" APIs).

Proposed Solution

Revert #22104.

@vivien-apple @woody-apple

@vivien-apple
Copy link
Contributor

I suspect this is related to the changes in #20766 ?

Can't we add a new field to CommissioningParameters such that we can rely on that to force the network scan if no credentials are provided ?
And in chip-tool an optional param can be added to enable/disable this flag...

@bzbarsky-apple
Copy link
Contributor Author

I suspect this is related to the changes in #20766 ?

Yes.

Can't we add a new field to CommissioningParameters such that we can rely on that to force the network scan

Yes, we can. That would also address this issue.

The problem is not forcing a network scan, by the way. That will happen if there are no credentials and we discovered over BLE. The problem is not skipping BLE discovery.

@andy31415
Copy link
Contributor

@vivien-apple - is this fixed now given that #22300 is merged?

@bzbarsky-apple
Copy link
Contributor Author

Yes, this is fixed now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
commissioning Involves placing devices on the network, initial setup V1.0
Projects
None yet
Development

No branches or pull requests

3 participants