wait_for_replug


Description:

[ Version ( since = "0.2.9" ) ]
public Device wait_for_replug (Device device, uint timeout_ms) throws Error

Waits for the device to be replugged.

It may come back with a different VID:PID.

Warning: This is synchronous and blocks until the device comes back or the timeout triggers.

Parameters:

this

a Context

device

a Device

timeout_ms

timeout to wait

Returns:

a new Device, or null for invalid