pgva_config
Wrapper for the configurations of the PGVA communication backend.
This holds all the different PGVA-1 configurations for different backends
PGVAConfig
dataclass
Generic class PGVA-1 dataclass for initalization.
Attributes:
| Name | Type | Description |
|---|---|---|
interface |
str
|
Interface type. Ex: 'tcp/ip', 'serial', 'codes |
unit_id |
int
|
Modbus unit ID of the PGVA-1 device |
Source code in src/pgva/pgva_config.py
PGVASerialConfig
dataclass
Bases: PGVAConfig
Class PGVA-1 configuration for serial connection.
Attributes:
| Name | Type | Description |
|---|---|---|
com_port |
str
|
COM port of the serial connection. Ex: 'COM3' or '/dev/ttyUSB0' |
baudrate |
int
|
Baudrate of the serial connection. Ex: 9600, 19200, 115200 |
Source code in src/pgva/pgva_config.py
PGVATCPConfig
dataclass
Bases: PGVAConfig
Class for PGVA-1 configuration class for ModbusTCP connection.
Attributes:
| Name | Type | Description |
|---|---|---|
ip |
str
|
IP address of PGVA in string form. Ex: '192.168.0.1' |
port |
int
|
Default to 502, port of connunication for the PGVA-1 |