The libpbus++ library allows one to control peripheral devices as a master (switcher), or to act as a peripheral device and be controlled using the Peripheral Bus II (PBus II) protocol.
Debian/Ubuntu/etc:
$ p=libpbus++ v=1.0
$ wget https://github.com/dimitry-ishenko-cpp/libpbuspp/releases/download/v${v}/${p}_${v}_amd64.deb
$ sudo apt install ./${p}_${v}_amd64.deb
Install the development package, if you are planning to develop applications with libpbus++:
$ p=libpbus++-dev v=1.0
$ wget https://github.com/dimitry-ishenko-cpp/libpbuspp/releases/download/v${v}/${p}_${v}_amd64.deb
$ sudo apt install ./${p}_${v}_amd64.deb
RaspberryPi:
$ p=libpbus++ v=1.0
$ wget https://github.com/dimitry-ishenko-cpp/libpbuspp/releases/download/v${v}/${p}_${v}_armhf.deb
$ sudo apt install ./${p}_${v}_armhf.deb
Install the development package, if you are planning to develop applications with libpbus++:
$ p=libpbus++-dev v=1.0
$ wget https://github.com/dimitry-ishenko-cpp/libpbuspp/releases/download/v${v}/${p}_${v}_armhf.deb
$ sudo apt install ./${p}_${v}_armhf.deb
Stable version (requires CMake >= 3.1 and asio):
$ p=libpbus++ v=1.0
$ wget https://github.com/dimitry-ishenko-cpp/libpbuspp/releases/download/v${v}/${p}-${v}.tar.bz2
$ tar xzf v${v}.tar.gz
$ mkdir ${p}-${v}/build
$ cd ${p}-${v}/build
$ cmake ..
$ make
$ sudo make install
Latest master (requires git, CMake >= 3.1 and asio):
$ p=libpbuspp
$ git clone --recursive https://github.com/dimitry-ishenko-cpp/${p}.git
$ mkdir ${p}/build
$ cd ${p}/build
$ cmake ..
$ make
$ sudo make install
- Dimitry Ishenko - dimitry (dot) ishenko (at) (gee) mail (dot) com
This project is distributed under the GNU GPL license. See the LICENSE.md file for details.