detect_devices#
method
- static BaseArduinoDriver.detect_devices() List[Dict[str, Any]]#
Returns a list of connection parameters for available devices.
Static function that can be called without object instantiation. Returns all available devices that can be detected on the local computer. Each available devices is represented by a dictionary that could be passed directly to
connect()using dictionary unpacking.- Returns:
- List[Dict[str, Any]]
Each list item represents a unique device. The dictionary is the keyword arguments passed to
connect(). If devices cannot be detected, this should return an empty list.
Examples
>>> available = Instrument.detect_devices() >>> device = Instrument() >>> device.connect(**available[0])