openthread_sys

Function otCommissionerSetId

Source
pub unsafe extern "C" fn otCommissionerSetId(
    aInstance: *mut otInstance,
    aId: *const c_char,
) -> otError
Expand description

Sets the Commissioner Id.

@param[in] aInstance A pointer to an OpenThread instance. @param[in] aId A pointer to a string character array. Must be null terminated.

@retval OT_ERROR_NONE Successfully set the Commissioner Id. @retval OT_ERROR_INVALID_ARGS Given name is too long. @retval OT_ERROR_INVALID_STATE The commissioner is active and id cannot be changed.