Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add serial port example #10

Merged
merged 1 commit into from
Jul 26, 2023
Merged

Conversation

oliverlee
Copy link
Collaborator

@oliverlee oliverlee commented Jul 23, 2023

Add an example connecting to a serial port and writing a message. This
is tested by creating a virtual serial port with the output written to
file.

Bazel test interaction with the filesystem prevents creation of a RW
device. As a result, //test:virtual_serial_port_test is defined as a
sh_binary that can be run with:

bazel run //test:virtual_serial_port_test

Change-Id: I1be9cb2e8b13fa972084d66fa2c6ddffb23ae3cc

@oliverlee oliverlee requested a review from andebjor July 23, 2023 07:26
@oliverlee oliverlee enabled auto-merge (squash) July 23, 2023 07:26
@oliverlee oliverlee force-pushed the I1be9cb2e8b13fa972084d66fa2c6ddffb23ae3cc branch 2 times, most recently from 3bc80b3 to 67b3af3 Compare July 24, 2023 13:15
@oliverlee oliverlee changed the title wip asio Add serial port example Jul 24, 2023
@oliverlee oliverlee force-pushed the I1be9cb2e8b13fa972084d66fa2c6ddffb23ae3cc branch from 67b3af3 to e4dadf4 Compare July 24, 2023 18:48
Add an example connecting to a serial port and writing a message. This
is tested by creating a virtual serial port with the output written to
file.

Bazel test interaction with the filesystem prevents creation of a RW
device. As a result, `//test:virtual_serial_port_test` is defined as a
`sh_binary` that can be run with:

  bazel run //test:virtual_serial_port_test

Change-Id: I1be9cb2e8b13fa972084d66fa2c6ddffb23ae3cc
@oliverlee oliverlee force-pushed the I1be9cb2e8b13fa972084d66fa2c6ddffb23ae3cc branch from e4dadf4 to 38341cb Compare July 26, 2023 11:58
@oliverlee oliverlee requested a review from andebjor July 26, 2023 12:05
@oliverlee oliverlee merged commit 28c2e70 into main Jul 26, 2023
28 checks passed
@oliverlee oliverlee deleted the I1be9cb2e8b13fa972084d66fa2c6ddffb23ae3cc branch July 26, 2023 12:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants