This repository was archived by the owner on Jan 10, 2023. It is now read-only.
This repository was archived by the owner on Jan 10, 2023. It is now read-only.
Cannot loop through devices #158
Open
Description
Hi,
I'm trying to use your library but i cannot access to all my devices because of the error LIBUSB_ERROR_TIMEOUT.
Here is my code:
cmd = 'echo hello world'
for connectedDevice in adb_commands.AdbCommands.Devices()
device = adb_commands.AdbCommands()
device.ConnectDevice(port_path=connectedDevice.port_path, rsa_keys=[self.signer])
print device.Shell(command=cmd).strip()
device.Close()
I can run the command only to the first device in generator object, when the loop arrive to the second device it fail with the described error.
Any advice about this?
Thanx
Metadata
Metadata
Assignees
Labels
No labels