Skip to content
This repository has been archived by the owner on Jun 9, 2023. It is now read-only.

Latest commit

 

History

History
24 lines (17 loc) · 1.4 KB

hs.usb.md

File metadata and controls

24 lines (17 loc) · 1.4 KB

docs » hs.usb


Inspect USB devices

Submodules

API Overview

API Documentation

Functions

Signature hs.usb.attachedDevices() -> table or nil
Type Function
Description Gets details about currently attached USB devices
Parameters
  • None
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