dummyserial
dummyserial copied to clipboard
out_waiting / outWaiting should be in_waiting / inWaiting actually
Hi!
It seems out_waiting is named wrong in dummyserial, as it is "in_waiting" in pyserial:
>>> s = serial.Serial('/dev/ttyUSB1', 115200, timeout=15)
>>> s.write(b'AT\r')
3
>>> s.inWaiting()
6
>>> s.read(s.inWaiting())
b'\r\nOK\r\n'
Since version 3.0, pyserial implements in_waiting and out_waiting. Package dummyserial only implements out_waiting.
So, it is not named incorrectly, but in_waiting is missing.