qmi.core.context_singleton.get_rpc_object

qmi.core.context_singleton.get_rpc_object(rpc_object_name: str, auto_connect: bool = False, host_port: str | None = None) Any

Return a proxy for the specified object.

The object may exist either in the local context, or in a peer context.

Parameters:
  • rpc_object_name – Object name, formatted as "<context_name>.<object_name>".

  • auto_connect – If True, connect automatically to the object peer.

  • host_port – Optional host:port string pattern to guide the auto_connect.

Returns:

A proxy for the specified object.

Raises:

QMI_NoActiveContextException – If there is no active QMI context present.