mirror of
https://github.com/espressif/openthread.git
synced 2026-09-03 07:40:10 +00:00
Add API to constrain the use of the Router/Leader role. (#285)
This commit is contained in:
@@ -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.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user