pub unsafe extern "C" fn otCommissionerAddJoinerWithDiscerner(
    aInstance: *mut otInstance,
    aDiscerner: *const otJoinerDiscerner,
    aPskd: *const c_char,
    aTimeout: u32
) -> otError
Expand description

Adds a Joiner entry with a given Joiner Discerner value.

@param[in] aInstance A pointer to an OpenThread instance. @param[in] aDiscerner A pointer to the Joiner Discerner. @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 aDiscerner 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().