aboutsummaryrefslogtreecommitdiff
path: root/BluetoothImpl.h
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2015-02-19 00:04:06 +0100
committerTrygve Laugstøl <trygvis@inamo.no>2015-02-19 00:04:06 +0100
commit5460c461809294bb302be8aa6e80533ec30e28e4 (patch)
treea171ce52d4f8908aeb9d13770965b9890608f738 /BluetoothImpl.h
parent4d2339c65548cf553891b049200e6a845de293e9 (diff)
downloadble-toys-5460c461809294bb302be8aa6e80533ec30e28e4.tar.gz
ble-toys-5460c461809294bb302be8aa6e80533ec30e28e4.tar.bz2
ble-toys-5460c461809294bb302be8aa6e80533ec30e28e4.tar.xz
ble-toys-5460c461809294bb302be8aa6e80533ec30e28e4.zip
o Reading characteristics, unable to parse just yet.
Diffstat (limited to 'BluetoothImpl.h')
-rw-r--r--BluetoothImpl.h14
1 files changed, 12 insertions, 2 deletions
diff --git a/BluetoothImpl.h b/BluetoothImpl.h
index 3d3ce29..0263da5 100644
--- a/BluetoothImpl.h
+++ b/BluetoothImpl.h
@@ -41,8 +41,8 @@ protected:
class DefaultBluetoothGattService : public BluetoothGattService {
public:
- DefaultBluetoothGattService(BluetoothDevice& device, const uuid_t uuid) :
- device(device), uuid(uuid) {
+ DefaultBluetoothGattService(BluetoothDevice& device, const uuid_t uuid, const uint16_t handle, const uint16_t endGroupHandle) :
+ device(device), uuid(uuid), handle(handle), endGroupHandle(endGroupHandle) {
}
virtual ~DefaultBluetoothGattService() {
@@ -56,6 +56,14 @@ public:
return uuid;
}
+ uint16_t getHandle() const {
+ return handle;
+ }
+
+ uint16_t getEndGroupHandle() const {
+ return endGroupHandle;
+ }
+
vector<BluetoothGattCharacteristic* >::const_iterator getCharacteristics() const {
return characteristics.begin();
}
@@ -63,6 +71,8 @@ public:
protected:
BluetoothDevice &device;
const uuid_t uuid;
+ const uint16_t handle;
+ const uint16_t endGroupHandle;
const vector<BluetoothGattCharacteristic*> characteristics;
};