docs » hs.usb.watcher
Watch for USB device connection/disconnection events
- Constructors - API calls which return an object, typically one that offers API methods
- new
- Methods - API calls which can only be made on an object returned by a constructor
- start
- stop
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 |
|