ljean / modbus-tk

Create Modbus app easily with Python
Other
568 stars 213 forks source link

Fix the serial port did not send out data immediately #98

Closed explora26 closed 6 years ago

explora26 commented 6 years ago

Sometimes the serial.write() keep the data in the internal buffer not send out immediately, call serial.flush() after serial.write() to flsuh all data in internal buffer.