mirror of
https://github.com/espressif/openthread.git
synced 2026-08-01 00:27:47 +00:00
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:
+10
-1
@@ -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.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user