forked from edrosten/libblepp
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathREADME
More file actions
38 lines (22 loc) · 1.19 KB
/
README
File metadata and controls
38 lines (22 loc) · 1.19 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
libble++
---------
Implementation of Bluetooth Low Energy functions in modern C++, without
the BlueZ DBUS API.
Includes:
* Scanning for bluetooth packets
* Implmentation of the GATT profile and ATT protocol
* Lots of comments, complete with references to to the specific part og
the Bluetooth 4.0 standard.
* Example programs
Design:
Clean, modern C++ with callbacks. Feed it lambdas (or whatever you like)
to perform an event happens. Access provided to the raw socket FD, so
you can select(), poll() or use 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.