ethernet tecna

This commit is contained in:
neo-2 2025-04-01 14:46:41 +02:00 committed by gg
parent 71f14fd1f6
commit 6ea810d616
2 changed files with 4 additions and 1 deletions

View File

@ -22,3 +22,6 @@ In addition to leak testing, the software supports many other functions, dependi
- On Windows: ./init_win.bat
- On Linux: ./init.sh
## fIX Chrome
If chrome doesn't start run this command
rm ~/.config/google-chrome/SingletonLock

View File

@ -52,7 +52,7 @@ class ModbusComponent(Component):
self.lock.lock()
try:
if self.connection_type == "ethernet":
self.client = ModbusTcpClient(host=self.ip_address)
self.client = ModbusTcpClient(host=self.ip_address, port=int(self.port))
if not self.client.connect():
raise ConnectionError(
f"Cannot connect to Modbus on IP address {self.ip_address} and port {self.port}"