Skip to content

Baud Rate and RegEx #5

Description

@tgriffith42

Thanks so much for posting the code!
Seems to work fine.
To get it to work with my device, simply had to change BaudRate from default of 9600 to what my device uses: 38400.
Also, had to slightly change the RegEx in ControllerResponse... change the \n to \r.
your code: Match matchedPattern = Regex.Match(Raw, @"\n([0-9a-fA-F ]{5})([0-9a-fA-F ]+)\r\n>");
my code: Match matchedPattern = Regex.Match(Raw, @"\r([0-9a-fA-F ]{5})([0-9a-fA-F ]+)\r\r>");
Thanks again!

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