Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

有读写的例程吗? #16

Closed
Yuirii opened this issue Dec 25, 2020 · 1 comment
Closed

有读写的例程吗? #16

Yuirii opened this issue Dec 25, 2020 · 1 comment

Comments

@Yuirii
Copy link

Yuirii commented Dec 25, 2020

运行了simple example,串口接收不到什么东西啊。

`async def read_and_print(aioserial_instance: aioserial.AioSerial):
while True:
print((await aioserial_instance.read_async()).decode(errors='ignore'), end='', flush=True)

asyncio.run(read_and_print(aioserial.AioSerial(port='COM35')))
`

希望能简单演示一下

@Yuirii
Copy link
Author

Yuirii commented Dec 25, 2020

Reference: #13

@Yuirii Yuirii closed this as completed Dec 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant