ljean / modbus-tk

Create Modbus app easily with Python
Other
557 stars 211 forks source link

simulator.py/RpcHandler() needs encode/decode to work these days #173

Open kiml opened 1 year ago

kiml commented 1 year ago

I needed to make the following change (Python 3.9) to make this code work.

@@ -90,13 +90,13 @@ class RpcHandler(SocketServer.BaseRequestHandler): """This function is called automatically by the SocketServer"""

self.request is the TCP socket connected to the client

     # read the incoming command
ljean commented 1 year ago

Hello, thanks for proposal. Can you please make a PR with this code. Is it still works in prior version of Python 3?