Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

get TCP data frame in modbusTCPMaster #146

Open
hobik opened this issue Mar 5, 2021 · 0 comments
Open

get TCP data frame in modbusTCPMaster #146

hobik opened this issue Mar 5, 2021 · 0 comments

Comments

@hobik
Copy link

hobik commented Mar 5, 2021

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,

rcv_byte = self._sock.recv(1)

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant