Skip to content
This repository has been archived by the owner on Jan 10, 2023. It is now read-only.

Cannot loop through devices #158

Open
Danny89530 opened this issue Jun 7, 2019 · 0 comments
Open

Cannot loop through devices #158

Danny89530 opened this issue Jun 7, 2019 · 0 comments

Comments

@Danny89530
Copy link

Danny89530 commented Jun 7, 2019

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant