Virtual Serial Device in Python?

后端 未结 6 1193
粉色の甜心
粉色の甜心 2020-12-12 14:58

I know that I can use e.g. pySerial to talk to serial devices, but what if I don\'t have a device right now but still need to write a client for it? How can I write a \"virt

6条回答
  •  清歌不尽
    2020-12-12 15:33

    Maybe a loop device will do the job if you need to test your application without access to a device. It's included in pySerial 2.5 https://pythonhosted.org/pyserial/url_handlers.html#loop

提交回复
热议问题