Skip to content

Commit

Permalink
Initialize chip-tool vendor ID with Test Vendor1
Browse files Browse the repository at this point in the history
  • Loading branch information
pan-apple committed Oct 28, 2021
1 parent 1e27d92 commit de48312
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions examples/chip-tool/commands/common/CHIPCommand.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,10 @@ CHIP_ERROR CHIPCommand::Run()
commissionerParams.controllerICAC = icacSpan;
commissionerParams.controllerNOC = nocSpan;

// Set controller vendor ID to Test Vendor #1
// As per specifications (section 2.5.2 Vendor Identifier)
commissionerParams.controllerVendorId = 0xFFF1;

ReturnLogErrorOnFailure(DeviceControllerFactory::GetInstance().Init(factoryInitParams));
ReturnLogErrorOnFailure(DeviceControllerFactory::GetInstance().SetupCommissioner(commissionerParams, mController));

Expand Down

0 comments on commit de48312

Please sign in to comment.