hs.usb
Inspect USB devices
Submodules
API Overview
- Functions - API calls offered directly by the extension
API Documentation
Functions
Signature | hs.usb.attachedDevices() -> table or nil |
Type | Function |
Description |
Gets details about currently attached USB devices |
Parameters |
|
Returns |
- A table containing information about currently attached USB devices, or nil if an error occurred. The table contains a sub-table for each USB device, the keys of which are:
- productName - A string containing the name of the device
- vendorName - A string containing the name of the device vendor
- vendorID - A number containing the Vendor ID of the device
- productID - A number containing the Product ID of the device
|
Source | extensions/usb/libusb.m line 14 |