You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Edward Rosten b1d7194d20
Merge pull request #55 from cwgthornton/master
2 years ago
blepp Revert "Add API to resize the buffer of the BLEDevice" 2 years ago
cmake/modules Create a basic CMake build 5 years ago
examples Implement (send_)write_command and make write_request(val) use val's type. 5 years ago
m4 Update build system. 6 years ago
pstreams updating pstream.h to release v1.0.1 4 years ago
src Use the device MTU in the state machine 2 years ago
tests Update code and tests. 6 years ago
.gitignore Improve .gitignore 5 years ago
ATT.txt some fixes 9 years ago
CMakeLists.txt Fix CMakeLists.txt 5 years ago
COPYING Fix broken license 8 years ago Fix and improve 5 years ago
Notes.txt Fix docs 8 years ago
README Spelling 4 years ago
att_gatt.h Fix broken license 8 years ago
configure Spelling fix 6 years ago Spelling fix 6 years ago
cxxgplot.h Fix compile errors reported by IRC user pez2001 6 years ago Add scraping file 8 years ago
hex2ascii.awk aaa 9 years ago Fix issue #25 4 years ago



Implementation of Bluetooth Low Energy functions in modern C++, without
the BlueZ DBUS API.

* Scanning for bluetooth packets

* Implementation of the GATT profile and ATT protocol

* Lots of comments, complete with references to the specific part of
the Bluetooth 4.0 standard.

* Example programs


Clean, modern C++ with callbacks. Feed it with lambdas (or whatever you like)
to perform an event happens. Access provided to the raw socket FD, so
you can use select(), poll() or blocking IO.

The example programs are:

* lescan_simple: Simplest possible program for scanning for devices. Only 2 non boilerplate lines.

* lescan: A "proper" scanning program that cleans up properly. It's got the same 2 lines of BLE related code and a bit of pretty standard unix for dealing with non blocking I/O and signals.

* temperature: A program for logging temperature values from a device providing a standard temperature characteristic. Very short to indicate the usave, but not much error checking.

Building the library

There are currently autoconf (./configure) and CMake options. It's not
a complex library to build, so either option should work fine.