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:
|
Signature | hs.usb.watcher:start() -> watcher |
---|---|
Type | Method |
Description | Starts the USB watcher Parameters:
Returns:
|
Signature | hs.usb.watcher:stop() -> watcher |
---|---|
Type | Method |
Description | Stops the USB watcher Parameters:
Returns:
|