qmi.tools.proc.get_context_status

qmi.tools.proc.get_context_status(context_name: str) tuple[int, str]

Check whether context is responding via TCP.

Parameters:

context_name – Name of the context to be tested.

Returns:

A tuple containing the process ID of the Python program containing the context, or -1 if the

context is not responding via TCP. And the QMI version number of the newly created context.

Return type:

(pip, ver)

Raises:

ProcessException – If an error occurs.