pylabrobot.mettler_toledo.MTSICSDriver.send_command#

async MTSICSDriver.send_command(command: str, timeout: int = 60) List[MettlerToledoResponse]#

Send a command to the scale and read all response lines.

Single-response commands (status A) return a list of one parsed line. Multi-response commands (status B) return all lines, reading until status A.

Parameters:
  • timeout (int) – The timeout in seconds (applies across all response lines).

  • command (str)

Raises:

MettlerToledoError – If the command is not supported by the connected device.

Return type:

List[MettlerToledoResponse]