Add callback to indicate when joiner operation completes. (#1094)

This commit is contained in:
Jonathan Hui
2016-12-27 08:06:18 -08:00
committed by GitHub
parent 28c049f2ce
commit 64d49153bd
18 changed files with 247 additions and 48 deletions
@@ -949,7 +949,8 @@ OTNODEAPI int32_t OTCALL otNodeJoinerStart(otNode* aNode, const char *aPSKd, con
otLogFuncEntryMsg("[%d] %s %s", aNode->mId, aPSKd, aProvisioningUrl);
printf("%d: joiner start %s %s\r\n", aNode->mId, aPSKd, aProvisioningUrl);
auto error = otJoinerStart(aNode->mInstance, aPSKd, aProvisioningUrl);
// TODO: handle the joiner completion callback
auto error = otJoinerStart(aNode->mInstance, aPSKd, aProvisioningUrl, NULL, NULL);
otLogFuncExit();
return error;