otslib is an implementation of the Bluetooth Object Transfer Service (OTS) Client. It is a work in progress and currently does not support all functionality outlined by the OTS Specification.
The library can be incorporated into a yocto build system using the meta-electronshepherds bitbake layer. Alternatively it can be built manually using the following steps.
Further documentation for the library can be found here.
To build the library some minimal requirements are needed.
The needed bluez requirement can be satisfied by installing the bluetooth development package:
sudo apt-get install libbluetooth-devThe needed gattlib requirement is a bit harder to satisfy. You must build and install the library manually:
- Get gattlib
git clone https://github.com/labapart/gattlib.git- Build gattlib
cd gattlib
mkdir build
cd build
cmake -DGATTLIB_BUILD_DOCS=OFF -DCMAKE_BUILD_TYPE=Release ..
make- Install gattlib
sudo make installBefore you can use the library you must build it.
- Get otslib
git clone https://github.com/electronshepherds/otslib.git- Build otslib
mkdir build
cd build
cmake ..
make- Install otslib
sudo make installUsage examples can be found in the examples directory.
Contributions are welcome! Please submit a pull request if you would like to contribute to this project.
Distributed under the MIT License. See LICENSE.txt for more information.