Skip to content

Flush write buffer #21

@SanderEveraers

Description

@SanderEveraers

Hi,
First of all, thank you for providing this library, it has really helped during my current project.
At this point if my application uses Ser.Write("my string"), it will stay in the write buffer until it is read by the connected device.

If for some reason, it isn't read, the buffer will keep older messages, resulting in unexpected messages when it is read at a later point, or even resulting in a segmentation fault when a buffer overflow occurs.

How can I flush the write buffer before calling Ser.Write("my string")?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions