[][src]Function libiio_sys::iio_create_default_context

pub unsafe extern "C" fn iio_create_default_context() -> *mut iio_context

@brief Create a context from local or remote IIO devices @return On success, A pointer to an iio_context structure @return On failure, NULL is returned and errno is set appropriately

NOTE: This function will create a network context if the IIOD_REMOTE environment variable is set to the hostname where the IIOD server runs. If set to an empty string, the server will be discovered using ZeroConf. If the environment variable is not set, a local context will be created instead.