Function openthread_sys::otJoinerSetDiscerner
source ยท pub unsafe extern "C" fn otJoinerSetDiscerner(
aInstance: *mut otInstance,
aDiscerner: *mut otJoinerDiscerner,
) -> otError
Expand description
Sets the Joiner Discerner.
The Joiner Discerner is used to calculate the Joiner ID during the Thread Commissioning process. For more information, refer to #otJoinerGetId. @note The Joiner Discerner takes the place of the Joiner EUI-64 during the joiner session of Thread Commissioning.
@param[in] aInstance A pointer to the OpenThread instance. @param[in] aDiscerner A pointer to a Joiner Discerner. If NULL clears any previously set discerner.
@retval OT_ERROR_NONE The Joiner Discerner updated successfully. @retval OT_ERROR_INVALID_ARGS @p aDiscerner is not valid (specified length is not within valid range). @retval OT_ERROR_INVALID_STATE There is an ongoing Joining process so Joiner Discerner could not be changed.