ethernet tecna
This commit is contained in:
parent
71f14fd1f6
commit
6ea810d616
|
|
@ -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
|
||||
|
|
@ -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}"
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user