Platforms to show: All Mac Windows Linux Cross-Platform

Back to LinuxHIDInterfaceMBS class.

LinuxHIDInterfaceMBS.MatchDevice(usbdev as LinuxUSBDeviceHandleMBS) as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
event USB MBS USB Plugin 10.3 ❌ No ❌ No ✅ Yes ❌ No
The event called to decide whether you want to connect to this device.
Example
Function MatchDevice(usbdev as LinuxUSBDeviceHandleMBS) As boolean
MsgBox usbdev.Device.Descriptor.SerialNumber
End Function

If several devices match the given vendor/product codes in Open/ForceOpen, you can decide here which one you accept.
Return true to accept a device.

Some examples using this event:

The items on this page are in the following plugins: MBS USB Plugin.


The biggest plugin in space...