TMSiSDK.device.devices.apex.apex_device.ApexDevice.start_download_file

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

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

Starts the download of the file requested.

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.api_invalid_command if already sampling.

  • TMSiError – TMSiErrorCode.device_not_connected if not connected.