InscoperBoxDriverConfig¶
Bases: DriverConfig
InscoperBoxDriverConfig class provides information for devices controlled by the device controller.
Notes: This class is non-copyable and non-movable.
This class handles configuration for a device connected to the controller, including its hardware identifier and list of connection configurations.
__init__()
¶
Default constructor.
Initializes a new instance of the InscoperBoxDriverConfig class.
getHardwareId()
¶
Get the device hardware ID.
Retrieves the unique hardware identifier for the device.
Returns:
| Type | Description |
|---|---|
int
|
The device hardware ID |
setHardwareId(hardwareId)
¶
Set the device hardware ID.
Sets the unique hardware identifier for the device.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
hardwareId
|
int
|
The device hardware ID |
required |
getConnectionConfigList()
¶
Get the connection configuration list.
Retrieves the list of connection configurations associated with this device.
Returns:
| Type | Description |
|---|---|
list[ConnectionConfig]
|
The list of connection configurations |
setConnectionConfigList(connections)
¶
Set the connection configuration list.
Replaces the list of connection configurations associated with this device.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
connections
|
list[ConnectionConfig]
|
The list of connection configurations |
required |
addConnectionConfig(connection)
¶
Add a connection configuration to the list.
Appends a new connection configuration to the current list.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
connection
|
ConnectionConfig
|
The connection configuration to add |
required |