dummyserial icon indicating copy to clipboard operation
dummyserial copied to clipboard

out_waiting / outWaiting should be in_waiting / inWaiting actually

Open olfway opened this issue 9 years ago • 1 comments

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'

olfway avatar May 27 '16 18:05 olfway

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.

glinders avatar May 01 '24 20:05 glinders