[][src]Function openthread_sys::otThreadSetEnabled

pub unsafe extern "C" fn otThreadSetEnabled(
    aInstance: *mut otInstance,
    aEnabled: bool
) -> otError

This function starts Thread protocol operation.

The interface must be up when calling this function.

@param[in] aInstance A pointer to an OpenThread instance. @param[in] aEnabled TRUE if Thread is enabled, FALSE otherwise.

@retval OT_ERROR_NONE Successfully started Thread protocol operation. @retval OT_ERROR_INVALID_STATE The network interface was not not up.