send_command#
- TcpOslServer.send_command(command: str, **kwargs) Dict#
Send command or query to the optiSLang server.
- Parameters:
- command: str
Command or query to be executed on optiSLang server.
- timeout: Optional[float], optional
Timeout to execute command. If not provided, TcpOslServer.timeouts_register.default_value is used.
- max_request_attempts: int, optional
Maximum number of attempts to execute command. If not provided, TcpOslServer.max_request_attempts_register.default_value is used.
- Returns:
DictResponse from the server.
- Raises:
RuntimeErrorRaised when the optiSLang server is not started.
OslCommunicationErrorRaised when an error occurs while communicating with server.
OslCommandErrorRaised when the command or query fails.
TimeoutErrorRaised when the timeout expires.