snipplets.dev/~/C/libserialport
2023-07-29 23:45:51 +03:00
..
.editorconfig listen from serial 2023-07-29 22:32:44 +03:00
.gitignore listen from serial 2023-07-29 22:32:44 +03:00
build listen from serial 2023-07-29 22:32:44 +03:00
clear listen from serial 2023-07-29 22:32:44 +03:00
format-code listen from serial 2023-07-29 22:32:44 +03:00
listen.c Show available ports 2023-07-29 23:45:51 +03:00
README.md prepare env 2023-07-29 21:05:08 +03:00

Download libserialport library.

git clone git://sigrok.org/libserialport

For build code use build script or build files manually.

Example:

export C_INCLUDE_PATH=<path/to/libserialport>
export LIBRARY_PATH=<path/to/libserialport/.libs>

gcc -static -Wall -O3 -o <output_filename> <file.c> -lserialport