I am trying to read and write data on RTU over Modbus TCP with python. But it prints false, this means client.connect() has failed.
from pymodbus.client import ModbusTcpClient from pymodbus.transaction import ModbusRtuFramer as ModbusFramer
client = ModbusTcpClient("192.168.1.232", port=502, framer=ModbusFramer)
success = client.connect()
print(success)