Skip to content

How to clear the input buffer? #97

@Wiggan

Description

@Wiggan

Hi,

In ordinary pyserial I can do:
self.serial_port.reset_input_buffer() self.serial_port.reset_output_buffer()

With pyserial_asyncio I try to do:
self.writer.transport.serial.reset_input_buffer() self.writer.transport.serial.reset_output_buffer()

This feels wrong, and also does not clear the input buffer. I have stray newlines due to the thing I'm talking to being a bit inconsistent.
How am I supposed to reset these buffers with pyserial_asyncio?

Best regards,
Fredrik

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