Open hobik opened 3 years ago
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?
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?