public static List < UsbDevice > getKnxDevices ( ) { final List < UsbDevice > knx = new ArrayList <> ( ) ; for ( final UsbDevice d : getDevices ( ) ) { final int vendor = d . getUsbDeviceDescriptor ( ) . idVendor ( ) & 0xffff ; for ( final int v : vendorIds ) if ( v == vendor ) knx . add ( d ) ; } return knx ; }
Returns the list of KNX devices currently attached to the host based on known KNX vendor IDs .