Skip to content

Commit

Permalink
[app] enable DIAG_GET request command into commission app
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhangLe2016 committed May 7, 2024
1 parent 79d1ddc commit 10c83ff
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/app/commissioner_app.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -825,6 +825,14 @@ Error CommissionerApp::SetPendingDataset(const PendingOperationalDataset &aDatas
return error;
}

Error CommissionerApp::CommandDiagGet(ByteArray &aRawTlvData, uint16_t aRloc, uint64_t aDiagTlvFlags)
{
Error error;
SuccessOrExit(error = mCommissioner->CommandDiagGet(aRawTlvData, aRloc, aDiagTlvFlags));
exit:
return error;
}

Error CommissionerApp::GetTriHostname(std::string &aHostname) const
{
Error error;
Expand Down
8 changes: 8 additions & 0 deletions src/app/commissioner_app.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,14 @@ class CommissionerApp : public CommissionerHandler
// Always send MGMT_PENDING_SET.req.
MOCKABLE Error SetPendingDataset(const PendingOperationalDataset &aDataset);

/*
* Diag TLV APIs
*/

// Always send DIAG_GET.req.
MOCKABLE Error CommandDiagGet(ByteArray &aRawTlvData, uint16_t aRloc, uint64_t aDiagTlvFlags);


/*
* BBR Dataset APIs
*/
Expand Down

0 comments on commit 10c83ff

Please sign in to comment.