Watch for USB device connection/disconnection events
Signature | hs.usb.watcher.new(fn) -> watcher |
---|---|
Type | Constructor |
Description | Creates a new watcher for USB device events |
Parameters |
|
Returns |
|
Source | extensions/usb/libusb_watcher.m line 177 |
Signature | hs.usb.watcher:start() -> watcher |
---|---|
Type | Method |
Description | Starts the USB watcher |
Parameters |
|
Returns |
|
Source | extensions/usb/libusb_watcher.m line 212 |
Signature | hs.usb.watcher:stop() -> watcher |
---|---|
Type | Method |
Description | Stops the USB watcher |
Parameters |
|
Returns |
|
Source | extensions/usb/libusb_watcher.m line 251 |