UsbGetVendorID()


vendorID = UsbGetVendorID(device$)

This function returns the vendor ID number of the specified device$. Each USB device has a vendor ID which identifies it's maker. If the device$ is a valid device name and this function returns zero, then there is nothing plugged into that USB port.


For example:


device$ = UsbGetFirstDevice$()
vendorID = UsbGetVendorID(device$)

Print device$
Print vendorID





USB Serial Communication






Become a Patron