mirror of
https://github.com/espressif/openthread.git
synced 2026-08-07 03:07:47 +00:00
[netdata] add api to check if joiner is in steering data (#5392)
This commit is contained in:
@@ -53,7 +53,7 @@ extern "C" {
|
||||
* @note This number versions both OpenThread platform and user APIs.
|
||||
*
|
||||
*/
|
||||
#define OPENTHREAD_API_VERSION (23)
|
||||
#define OPENTHREAD_API_VERSION (24)
|
||||
|
||||
/**
|
||||
* @addtogroup api-instance
|
||||
|
||||
@@ -274,6 +274,36 @@ uint8_t otNetDataGetVersion(otInstance *aInstance);
|
||||
*/
|
||||
uint8_t otNetDataGetStableVersion(otInstance *aInstance);
|
||||
|
||||
/**
|
||||
* Check if the steering data includes a Joiner.
|
||||
*
|
||||
* @param[in] aInstance A pointer to an OpenThread instance.
|
||||
* @param[in] aEui64 A pointer to the Joiner's IEEE EUI-64.
|
||||
*
|
||||
* @retval OT_ERROR_NONE @p aEui64 is included in the steering data.
|
||||
* @retval OT_ERROR_INVALID_STATE No steering data present.
|
||||
* @retval OT_ERROR_NOT_FOUND @p aEui64 is not included in the steering data.
|
||||
*
|
||||
*/
|
||||
otError otNetDataSteeringDataCheckJoiner(otInstance *aInstance, const otExtAddress *aEui64);
|
||||
|
||||
// Forward declaration
|
||||
struct otJoinerDiscerner;
|
||||
|
||||
/**
|
||||
* Check if the steering data includes a Joiner with a given discerner value.
|
||||
*
|
||||
* @param[in] aInstance A pointer to an OpenThread instance.
|
||||
* @param[in] aDiscerner A pointer to the Joiner Discerner.
|
||||
*
|
||||
* @retval OT_ERROR_NONE @p aDiscerner is included in the steering data.
|
||||
* @retval OT_ERROR_INVALID_STATE No steering data present.
|
||||
* @retval OT_ERROR_NOT_FOUND @p aDiscerner is not included in the steering data.
|
||||
*
|
||||
*/
|
||||
otError otNetDataSteeringDataCheckJoinerWithDiscerner(otInstance * aInstance,
|
||||
const struct otJoinerDiscerner *aDiscerner);
|
||||
|
||||
/**
|
||||
* @}
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user