libdirecpp is a C/C++ library used to control Terminal Node Controllers (TNCs) for amateur radio. This is heavily based on the Direwolf project by wb2osz and it's primarily meant to work with it.
- Communicate with TNCs over tcp/serial using the KISS protocol
- Parse and create APRS packets
- g++
- make
- autotools
Download a release version from this github repository and do de following commands on the directory it is located.
tar -xvf libdirecpp-x.x.x.tar.gz
cd libdirecpp-x.x.x.tar.gz
./configure
make
sudo make install
Note 1: x.x.x represents the release version you downloaded.
Note 2: You might have to create a symlink from libdirecpp
to /usr/lib. You can do so by typing the following command:
sudo ln -s /usr/local/lib/libdirecpp.* /usr/lib/
I have prepared a few examples on the examples folder, so you can take a look in there to see a basic use case of the library. For a more detail explanation, you can look at the documentation at the doc folder.
Just go to the folder where the exmaple is located, and type the following command to compile it:
g++ -ldirecpp main.cpp -o [name of the example]
Then, while inside that same directory, type ./[name of the example]
to run it.