I have written the following little block of code:
from pymodbus.client.sync import ModbuTcpClient
def test(client):
client.connect()
print client.read_holding_registers(10, 1, unit=10)
client.close()
test(client)
.
The output I get from print is:
ReadRegisterResponse (1)
.
Why am I getting this and not the actual value (integer/string) the register is holding?
Thanks for the answers!