USB
class USB(logMeterEvents: Boolean, detectors: List<USBDetector> = listOf(SmartPower3Detector(logMeterEvents), ElmorLabsPMD2Detector(logMeterEvents)), val debug: Boolean = false, val verbose: Boolean = false) : AbstractUSBSource
USB subsystem / meter source.
only a single instance should be started per process (driver limitation)
should be closed before exiting the VM
Constructors
Functions
Link copied to clipboard
Returns the number of discovered meters.
Link copied to clipboard
Link copied to clipboard
Returns a list of meter constructors for the meters discovered by this source. The constructors have a field for querying the specifications of the meters and another method for constructing the handler for that specific meter.
Link copied to clipboard
Each type of meter has a unique id string. Returns the list of meters recognized by this source.