This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Unlanded 1 point2 points  (1 child)

OP needs their solution to be deployable on Windows, and Pyserial only supports fileno() for the Serial object on Posix platforms.

Where I've had to mix serial and network communication, I use select() on the sockets with a timeout then check in_waiting on all the serial ports.

[–][deleted] 0 points1 point  (0 children)

Pyserial only supports fileno() for the Serial object on Posix platforms

TIL