Skip to content

Commit

Permalink
Overrides rendezvousInformation with the value that came from the com…
Browse files Browse the repository at this point in the history
…mand line (project-chip#19417)
  • Loading branch information
yufengwangca authored Jun 10, 2022
1 parent f8171b6 commit 02fbde2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion examples/platform/linux/AppMain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,11 @@ int ChipLinuxAppInit(int argc, char * const argv[], OptionSet * customOptions)
LinuxDeviceOptions::GetInstance());
SuccessOrExit(err);

if (LinuxDeviceOptions::GetInstance().payload.rendezvousInformation.HasAny())
{
rendezvousFlags = LinuxDeviceOptions::GetInstance().payload.rendezvousInformation;
}

err = GetPayloadContents(LinuxDeviceOptions::GetInstance().payload, rendezvousFlags);
SuccessOrExit(err);

Expand Down Expand Up @@ -289,7 +294,6 @@ void ChipLinuxAppMainLoop()
// use a different service port to make testing possible with other sample devices running on same host
initParams.operationalServicePort = LinuxDeviceOptions::GetInstance().securedDevicePort;
initParams.userDirectedCommissioningPort = LinuxDeviceOptions::GetInstance().unsecuredCommissionerPort;
;
#endif // CHIP_DEVICE_CONFIG_ENABLE_BOTH_COMMISSIONER_AND_COMMISSIONEE

initParams.interfaceId = LinuxDeviceOptions::GetInstance().interfaceId;
Expand Down

0 comments on commit 02fbde2

Please sign in to comment.