[][src]Function openthread_sys::otThreadSetDomainName

pub unsafe extern "C" fn otThreadSetDomainName(
    aInstance: *mut otInstance,
    aDomainName: *const c_char
) -> otError

Set the Thread Domain Name.

This function is only availble since Thread 1.2. This function succeeds only when Thread protocols are disabled.

@param[in] aInstance A pointer to an OpenThread instance. @param[in] aDomainName A pointer to the Thread Domain Name.

@retval OT_ERROR_NONE Successfully set the Thread Domain Name. @retval OT_ERROR_INVALID_STATE Thread protocols are enabled.

@sa otThreadGetDomainName