productID = UsbGetProductID(device$)

This function returns the product ID number of the specified device$. The product ID can be used in conjunction with the vendor ID to identify the exact device plugged into the device$ USB port. 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$()
productID = UsbGetProductID(device$)

Print device$
Print productID

USB Serial Communication

Become a Patron