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

PASE Commissioner #982

Merged
merged 17 commits into from
Jul 1, 2024
Merged

PASE Commissioner #982

merged 17 commits into from
Jul 1, 2024

Conversation

Apollon77
Copy link
Collaborator

@Apollon77 Apollon77 commented Jun 30, 2024

This PR adds a PASE Commissionier which allows to execute "just" the initial commissioning par e.g, in a react-native environment and have the commissioning completion done separately.

For this it adjusts MatterController internal class to be more flexible and make sure via factory methods that the right data are provided depending on the use case.

It also allows to initialize the Root Certificate manager with a defined certificate without loading from storage.

See commits and changelog.

This code will be tested with building a BLE commissioner in React native, for this marked as "experimental" for now.

Enhance the "doOperationalDeviceConnection" callback with the option to notify the commissioner that the completion of the commissioning process was done via other ways (e.g. from a server differently from the commissioner instance).
The commisioning options got an optional callback to allow custom commissioning completion ways.
Additionally streamline the interface (breaking) to allow just to commission to a device without a connection afterwards.
And allow the class to be initialized with data and without storage too.
... but the standard "create" is still requiring it, so external interface stays unchanged
This class is a minimalistic commissioning controller that allows to just execute the initial commissioning process without completion. For this it gets initialized with the Root certificate data and the fabric data from a Controller fabric that already exists. A callback is called when operational  discovery and completing the commissioning is needed.
@mergify mergify bot merged commit 367a66c into main Jul 1, 2024
26 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants