This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

otThreadSetMasterKey() usage

This function succeeds only when Thread protocols are disabled. my question is: if the Thread protocols are enable,what should I do to disable them  ,now what I do is:

"otThreadSetEnabled(otIns,false);
errornum = otThreadSetMasterKey(otIns,otMasKey);
otThreadSetEnabled(otIns,true);"

but it doesn't work , I need help 

   thanks 

Related