[dataset] add callback to receive MGMT_SET responses (#6887)

This commit is contained in:
jinran-google
2021-08-11 11:12:16 +08:00
committed by GitHub
parent c494b9f25d
commit 71bc37bbc3
10 changed files with 133 additions and 38 deletions
+4 -2
View File
@@ -565,11 +565,13 @@ otError Dataset::ProcessMgmtSetCommand(Arg aArgs[])
if (aArgs[0] == "active")
{
error = otDatasetSendMgmtActiveSet(mInterpreter.mInstance, &dataset, tlvs, tlvsLength);
error = otDatasetSendMgmtActiveSet(mInterpreter.mInstance, &dataset, tlvs, tlvsLength, /* aCallback */ nullptr,
/* aContext */ nullptr);
}
else if (aArgs[0] == "pending")
{
error = otDatasetSendMgmtPendingSet(mInterpreter.mInstance, &dataset, tlvs, tlvsLength);
error = otDatasetSendMgmtPendingSet(mInterpreter.mInstance, &dataset, tlvs, tlvsLength, /* aCallback */ nullptr,
/* aContext */ nullptr);
}
else
{