l.lefebvre

Results 19 comments of l.lefebvre

It looks like you are trying to run pyModbusTCP on an unsupported version of Python. Python 3.5 reached end of life in 2020, pyModbusTCP is currently testing on Python 3.7...

This is now available in pyModbusTCP version 0.2.1. ```python from pyModbusTCP.client import ModbusClient mc = ModbusClient(host='myserver.example.com') dev_id_resp = mc.read_device_identification() print(f'vendor={dev_id_resp.vendor_name}') ``` more: https://pymodbustcp.readthedocs.io/en/latest/package/class_ModbusClient.html#pyModbusTCP.client.ModbusClient.read_device_identification

Hi, it's a bit difficult to advise you, as it largely depends on the behavior of the device to which you are connecting. I would say that since you are...

Hello, I may have misunderstood your request but the timestamp at the source is not managed by the Modbus protocol. At least, in the basic standard functions. However, you can...

Hi, You can achieve this by implementing a custom DataBank class, as shown in the provided example: https://github.com/sourceperl/pyModbusTCP/blob/47675dcb865c81fbfbcdea9eb75581a6f3c31b70/examples/server_change_log.py

Hi, in the ModbusClient code, the is_open property depends on the state of the Python socket like this : ```python @property def is_open(self): """Get current status of the TCP connection...

Unfortunately, the operation of the socket module is not trivial (more info on https://docs.python.org/3/library/socket.html). To try to be clear, here is a small program that details in four steps, the...

Hi, I don't quite understand the purpose of this merge request. What problem are you trying to solve with this code ? Because, essentially, [`socket.connect`](https://docs.python.org/3/library/socket.html#socket.socket.connect) and [`socket.connect_ex`](https://docs.python.org/3/library/socket.html#socket.socket.connect_ex) do the same...

Hi, I'm not sure I understand your use case. However, here are some notes/tips that I hope will help you: - avoid using a large timeout unless you are dealing...