Parent Info (#1370)

* Expanded otGetParentInfo to populate the entire aParentInfo structure

* Added otGetParentAverageRssi function

* Use GetRouterId from rloc function instead of doing it manualy, and corrected documentation
This commit is contained in:
Adam Eliot
2017-02-23 11:23:27 -08:00
committed by Jonathan Hui
parent 63b78808c3
commit ab1bfa99fa
2 changed files with 36 additions and 2 deletions
+10 -1
View File
@@ -1933,7 +1933,7 @@ OTAPI uint8_t OTCALL otGetRouterIdSequence(otInstance *aInstance);
OTAPI ThreadError OTCALL otGetRouterInfo(otInstance *aInstance, uint16_t aRouterId, otRouterInfo *aRouterInfo);
/**
* The function retains diagnostic information for a Thread Router as parent.
* The function retrieves diagnostic information for a Thread Router as parent.
*
* @param[in] aInstance A pointer to an OpenThread instance.
* @param[out] aParentInfo A pointer to where the parent router information is placed.
@@ -1941,6 +1941,15 @@ OTAPI ThreadError OTCALL otGetRouterInfo(otInstance *aInstance, uint16_t aRouter
*/
OTAPI ThreadError OTCALL otGetParentInfo(otInstance *aInstance, otRouterInfo *aParentInfo);
/**
* The function retrieves the average RSSI for the Thread Parent.
*
* @param[in] aInstance A pointer to an OpenThread instance.
* @param[out] aParentInfo A pointer to where the parent rssi should be placed.
*
*/
OTAPI ThreadError OTCALL otGetParentAverageRssi(otInstance *aInstance, int8_t *aParentRssi);
/**
* Get the Stable Network Data Version.
*