Skip to content

Commit 165f4dc

Browse files
committed
Add GetCommissioningWindowParams back in
1 parent 53b1e8a commit 165f4dc

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

src/app/clusters/commissioner-control-server/commissioner-control-server.cpp

+4
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,10 @@ bool emberAfCommissionerControlClusterCommissionNodeCallback(
242242
err = delegate->ValidateCommissionNodeCommand(sourceNodeId, requestId);
243243
SuccessOrExit(err == CHIP_NO_ERROR);
244244

245+
// Populate the parameters for the commissioning window
246+
err = delegate->GetCommissioningWindowParams(commissionNodeInfo->params);
247+
SuccessOrExit(err == CHIP_NO_ERROR);
248+
245249
// Add the response for the commissioning window.
246250
AddReverseOpenCommissioningWindowResponse(commandObj, commandPath, commissionNodeInfo->params);
247251

src/app/clusters/commissioner-control-server/commissioner-control-server.h

+10
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,16 @@ class Delegate
117117
*/
118118
virtual CHIP_ERROR ValidateCommissionNodeCommand(NodeId clientNodeId, uint64_t requestId) = 0;
119119

120+
/**
121+
* @brief Get the parameters for the commissioning window.
122+
*
123+
* This method is called to retrieve the parameters needed for the commissioning window.
124+
*
125+
* @param[out] outParams The parameters for the commissioning window.
126+
* @return CHIP_ERROR indicating the success or failure of the operation.
127+
*/
128+
virtual CHIP_ERROR GetCommissioningWindowParams(CommissioningWindowParams & outParams) = 0;
129+
120130
/**
121131
* @brief Reverse the commission node process.
122132
*

0 commit comments

Comments
 (0)