vaem_config
Holds all the different VAEM configurations for the different backends.
These are the supported client interface configurations for the VAEM valve control module
Typical usage examples
vaem_config = VAEMTCPConfig(interface="tcp/ip", ip=ip, port=502)
vaem = VAEM(config=vaem_config)
VAEMConfig
dataclass
Generic VAEM config dataclass for initialization.
Attributes:
| Name | Type | Description |
|---|---|---|
interface |
str
|
Interface to connect to VAEM. Ex: 'tcp/ip', 'serial' |
unit_id |
int
|
Modbus Unit ID of the VAEM (default: 1) |
Source code in src/vaem/vaem_config.py
VAEMSerialConfig
dataclass
Bases: VAEMConfig
Dataclass for VAEM Serial connection.
Attributes:
| Name | Type | Description |
|---|---|---|
com_port |
str
|
COM port to connect to VAEM |
baudrate |
int
|
Baudrate for the serial connection (default: 9600). Ex: 9600, 19200, 38400, 57600, 115200 |
Typical usage example
vaem_serial_config = VAEMSerialConfig(interface = "serial", com_port = "COM3", baudrate = 9600)
vaem = VAEM(vaem_serial_config)
Source code in src/vaem/vaem_config.py
VAEMTCPConfig
dataclass
Bases: VAEMConfig
Datclass for VAEM TCP/IP connection.
Attributes:
| Name | Type | Description |
|---|---|---|
ip |
str
|
IP address of the VAEM |
port |
int
|
Port number of the VAEM (default: 502) |
Typical usage example
vaem_config = VAEMTCPConfig(interface="tcp/ip", ip=ip, port=502)
vaem = VAEM(config=vaem_config)