TMSiSDK.device.devices.apex.apex_device.ApexDevice.download_file_from_device

TMSiSDK.device.devices.apex.apex_device.ApexDevice.download_file_from_device#

ApexDevice.download_file_from_device(file_id: int, filename: str = None)#

Creates a data stream to download the file from the device.

Parameters:
  • file_id (int) – id of the file to download.

  • filename (str, optional) – filename where to write the impedance report (if available), defaults to None

Raises:
  • TMSiError – TMSiErrorCode.file_writer_error if impedance report download fails.

  • TMSiError – TMSiErrorCode.device_error if the file download fails.

  • TMSiError – TMSiErrorCode.api_invalid_command if already sampling.

  • TMSiError – TMSiErrorCode.device_not_connected if not connected.