You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I had written a script to pull information from a device through modbus gateway, it worked very well whit version 0.9. Somedays ago i installed 1.1, it can not work anymore. I wirte a brief fllowing:
in v0.9, I created a new class in client/sync.py named ModbusRTUTcpClient, it copied from ModbusTcpClient, the only change is : change BaseModbusClient.init(self, ModbusSocketFramer(ClientDecoder())) to BaseModbusClient.init(self, ModbusRtuFramer(ClientDecoder())).
in v1.1, I found there is framer parameter support, so i use:
client = ModbusTcpClient(host=host, port=port,framer=ModbusRtuFramer)
it cannot work.
Any suggestion? thanks
The text was updated successfully, but these errors were encountered:
Hi,
I had written a script to pull information from a device through modbus gateway, it worked very well whit version 0.9. Somedays ago i installed 1.1, it can not work anymore. I wirte a brief fllowing:
in v0.9, I created a new class in client/sync.py named ModbusRTUTcpClient, it copied from ModbusTcpClient, the only change is : change BaseModbusClient.init(self, ModbusSocketFramer(ClientDecoder())) to BaseModbusClient.init(self, ModbusRtuFramer(ClientDecoder())).
in v1.1, I found there is framer parameter support, so i use:
client = ModbusTcpClient(host=host, port=port,framer=ModbusRtuFramer)
it cannot work.
Any suggestion? thanks
The text was updated successfully, but these errors were encountered: