Skip to content

writer doesn't write anything #79

@anormalrobot

Description

@anormalrobot

Hello,

When i was trying to send a data with following code nothing happens:

from asyncio import get_event_loop
from serial_asyncio import open_serial_connection

async def run():
reader, writer = await open_serial_connection(url='/dev/ttyUSB1', baudrate=115200)
writer.write(b'Hello World')

loop = get_event_loop()
loop.run_until_complete(run())

But when i want to read and write everything works perfectly. Is there any way to write only async serial.

Have a great day :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions