Skip to content

Allow configuring cc[VMIN] and cc[VTIME] #11

Description

@Nabav

Currently, there are fixed configurations.

            settings.cc[VMIN] = 1;
            settings.cc[VSTOP] = 0x13; // XOFF
            settings.cc[VSTART] = 0x11; // XON
            settings.cc[VTIME] = 0;

In one application, this resulted to blocking read, since there were no time out and one byte was expected. So I have changed to

            settings.cc[VMIN] = 0;
            settings.cc[VSTOP] = 0x13; // XOFF
            settings.cc[VSTART] = 0x11; // XON
            settings.cc[VTIME] = 1;

and catched the error.EndOfStream after serial.reader().readByte().

This brings me to the point to request the ability to tweak these settings, if it is not yet there.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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