modbus-tk icon indicating copy to clipboard operation
modbus-tk copied to clipboard

get TCP data frame in modbusTCPMaster

Open hobik opened this issue 4 years ago • 0 comments

I want to get, TCP data frame between some modbus tcp proccess, For example when I want to read holding register 1 to 5, I want to get all TCP frame, https://github.com/ljean/modbus-tk/blob/14c70f2c3c794b7e2944762f408b98e7bc77a8fe/modbus_tk/modbus_tcp.py#L216

When I try to check this line,rcv_byte = self._sock.recv(1) with print(recv_byte) I get just PDU unit. How can I access the TCP frame while receiving data between these processes?

hobik avatar Mar 05 '21 06:03 hobik