openthread_sys

Function otCommissionerAddJoiner

Source
pub unsafe extern "C" fn otCommissionerAddJoiner(
    aInstance: *mut otInstance,
    aEui64: *const otExtAddress,
    aPskd: *const c_char,
    aTimeout: u32,
) -> otError
Expand description

Adds a Joiner entry.

@param[in] aInstance A pointer to an OpenThread instance. @param[in] aEui64 A pointer to the Joiner’s IEEE EUI-64 or NULL for any Joiner. @param[in] aPskd A pointer to the PSKd. @param[in] aTimeout A time after which a Joiner is automatically removed, in seconds.

@retval OT_ERROR_NONE Successfully added the Joiner. @retval OT_ERROR_NO_BUFS No buffers available to add the Joiner. @retval OT_ERROR_INVALID_ARGS @p aEui64 or @p aPskd is invalid. @retval OT_ERROR_INVALID_STATE The commissioner is not active.

@note Only use this after successfully starting the Commissioner role with otCommissionerStart().