Open GoogleCodeExporter opened 9 years ago
and my test code as below:
>>> from pymodbus.client.sync import ModbusTcpClient as ModbusClient
>>> client = ModbusClient('127.0.20.1', 10001)
>>> client.connect()
True
>>> rr = client.read_discrete_inputs(1, 8, unit=1)
>>> rr.__dict__
Traceback (most recent call last):
File "<interactive input>", line 1, in <module>
AttributeError: 'NoneType' object has no attribute '__dict__'
>>> print rr
None
Original comment by yguma.y...@gmail.com
on 29 Jan 2014 at 2:57
hi~ guy
I find what's wrong..
because the reply 6 bytes header is wrong from my modbus gateway
it remove the first 2 bytes, and let it from "01 02" to "00 00"
so it fails...
now the modbus gateway problem is fixed
so everything is correct!!
Original comment by yguma.y...@gmail.com
on 13 Mar 2014 at 12:00
Original issue reported on code.google.com by
yguma.y...@gmail.com
on 29 Jan 2014 at 2:12