Function openthread_sys::otThreadSetEnabled
source ยท pub unsafe extern "C" fn otThreadSetEnabled(
aInstance: *mut otInstance,
aEnabled: bool,
) -> otError
Expand description
Starts Thread protocol operation.
The interface must be up when calling this function.
Calling this function with @p aEnabled set to FALSE stops any ongoing processes of detaching started by otThreadDetachGracefully(). Its callback will be called.
@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 up.