(self, vendor_id, product_id,
            skip_on_access_error=False, skip_on_error=False)
return result
Get the first USB device matching given vendor and product ids.
        Returns an USBDevice instance, or None if no present device match.
        skip_on_error (bool)
            (see getDeviceList)
        skip_on_access_error (bool)
            (see getDeviceList)
Get the first USB device matching given vendor and product ids.
        Returns an USBDevice instance, or None if no present device match.
        skip_on_error (bool)
            (see getDeviceList)
        skip_on_access_error (bool)
            (see getDeviceList)
Get the first USB device matching given vendor and product ids . Returns an USBDevice instance or None if no present device match . skip_on_error ( bool ) ( see getDeviceList ) skip_on_access_error ( bool ) ( see getDeviceList )
def getByVendorIDAndProductID(self, vendor_id, product_id,
            skip_on_access_error=False, skip_on_error=False):
        """
        Get the first USB device matching given vendor and product ids.
        Returns an USBDevice instance, or None if no present device match.
        skip_on_error (bool)
            (see getDeviceList)
        skip_on_access_error (bool)
            (see getDeviceList)
        """
        for device in self.getDeviceList(
                skip_on_access_error=skip_on_access_error,
                skip_on_error=skip_on_error):
            if device.getVendorID() == vendor_id and \
                    device.getProductID() == product_id:
                result = device
                break
        else:
            result = None
        return result
def getByVendorIDAndProductID ( self , vendor_id , product_id , skip_on_access_error = False , skip_on_error = False ) : for device in self . getDeviceList ( skip_on_access_error = skip_on_access_error , skip_on_error = skip_on_error ) : if device . getVendorID ( ) == vendor_id and device . getProductID ( ) == product_id : result = device break else : result = None return result