Closed as not planned
Description
I'm using version 3.8.6 from pip and talking to an EW11 modbus TCP adapter.
According to the docs I can pass in a device_id
.
However, when I do this I get the error:
TypeError: ModbusClientMixin.read_holding_registers() got an unexpected keyword argument 'device_id'
When ommiting device_id
altogether things work as expected.
Example code
from pymodbus.client import ModbusTcpClient
c = ModbusTcpClient(host="hostname")
c.connect()
r = c.read_holding_registers(47, count=7, device_id=1)
Error
Traceback (most recent call last):
File "<python-input-4>", line 1, in <module>
r = c.read_holding_registers(47, count=7, device_id=1)
TypeError: ModbusClientMixin.read_holding_registers() got an unexpected keyword argument 'device_id'
Metadata
Metadata
Assignees
Labels
No labels