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

Example operational credentials issuer for tests and tools #6598

Merged
merged 2 commits into from
May 10, 2021
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
fix Android build
  • Loading branch information
pan-apple committed May 7, 2021
commit 0e3860f14ad3c9344bead8afc1b9e07435c07e52
4 changes: 2 additions & 2 deletions src/controller/java/AndroidDeviceControllerWrapper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -143,13 +143,13 @@ AndroidDeviceControllerWrapper * AndroidDeviceControllerWrapper::AllocateNew(Jav
initParams.inetLayer = inetLayer;
initParams.bleLayer = GetJNIBleLayer();

*errInfoOnFailure = mOpCredsIssuer.Initialize();
*errInfoOnFailure = wrapper->OpCredsIssuer().Initialize();
if (*errInfoOnFailure != CHIP_NO_ERROR)
{
return nullptr;
}

initParams.operationalCredentialsDelegate = &mOpCredsIssuer;
initParams.operationalCredentialsDelegate = &wrapper->OpCredsIssuer();

*errInfoOnFailure = wrapper->Controller()->Init(nodeId, initParams);

Expand Down
1 change: 1 addition & 0 deletions src/controller/java/AndroidDeviceControllerWrapper.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ class AndroidDeviceControllerWrapper : public chip::Controller::DevicePairingDel
~AndroidDeviceControllerWrapper();

chip::Controller::DeviceCommissioner * Controller() { return mController.get(); }
chip::Controller::ExampleOperationalCredentialsIssuer & OpCredsIssuer() { return mOpCredsIssuer; }
void SetJavaObjectRef(JavaVM * vm, jobject obj);

// DevicePairingDelegate implementation
Expand Down