Crates.io | wolffserial |
lib.rs | wolffserial |
version | 0.2.1 |
source | src |
created_at | 2022-07-02 23:27:12.990592 |
updated_at | 2022-07-07 21:12:05.36323 |
description | Simple cli tool for listing and watching serial ports |
homepage | |
repository | https://github.com/wolffshots/wolffserial-rs |
max_upload_size | |
id | 618032 |
size | 18,598 |
a lil helper program for reading from a serial port and listing available serial ports
as long as you have cargo on the path you should be able to build with cargo build
or run with cargo run
you may need to install libudev-dev
and pkg-config
to build the package properly
on ubuntu this would most likely be done with:
# apt install libudev-dev pkg-config
the binary needs to be run from a terminal with a subcommand to tell it what to do.
the available options and commands can be displayed by running with the help
subcommand or --help
flag and this can be used to see help for a specific command as well (such as ./wolffserial help watch
to see the help for the watch subcommand
)
below is an example output from running ./wolffserial help
and from this you can see the functions of the subcommands
Recieve input from a serial device
Reads data from a serial port and echoes it to stdout
USAGE:
wolffserial [SUBCOMMAND]
FLAGS:
-h, --help Prints help information
SUBCOMMANDS:
help Prints this message or the help of the given subcommand(s)
list Lists available devices
watch Watch a specific device