ljean / modbus-tk

Create Modbus app easily with Python
Other
566 stars 212 forks source link

RTU: Read first byte of a request in blocking way #94

Closed desowin closed 6 years ago

desowin commented 6 years ago

There is no need to keep restarting the read() when there is no request coming. Functionally the behaviour is not affected. However, this change significantly reduces cpu usage when RTU slave is waiting for request.