Add API to constrain the use of the Router/Leader role. (#285)

This commit is contained in:
Jonathan Hui
2016-07-25 19:14:50 -07:00
committed by GitHub
parent 9d2bd018dc
commit 3313b66342
4 changed files with 65 additions and 1 deletions
+17
View File
@@ -478,6 +478,23 @@ otPanId otGetPanId(void);
*/
ThreadError otSetPanId(otPanId aPanId);
/**
* This function indicates whether or not the Router Role is enabled.
*
* @retval TRUE If the Router Role is enabled.
* @retval FALSE If the Router Role is not enabled.
*
*/
bool otIsRouterRoleEnabled(void);
/**
* This function sets whether or not the Router Role is enabled.
*
* @param[in] aEnabled TRUE if the Router Role is enabled, FALSE otherwise.
*
*/
void otSetRouterRoleEnabled(bool aEnabled);
/**
* Get the IEEE 802.15.4 Short Address.
*