I am a newbie in python. Sorry if the question may sound silly.
I'm using pyModbus to implement an asynchronous Modbus TCP server on a BeagleBone Black. It works well, I'm able to connect with clients and retrieve values from the registers.
I start the server with:
from pymodbus.server.async import StartTcpServer
StartTcpServer(context, identity=identity, address=("0.0.0.0", 502))
I'm now trying to implement a monitor of the traffic in and out the server. I would need to plot/log all the requests from the client(s) and all the responses from the server.
Is there any way to access the rx/tx buffers?
Thank you.