diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2015-02-19 00:04:06 +0100 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2015-02-19 00:04:06 +0100 |
commit | 5460c461809294bb302be8aa6e80533ec30e28e4 (patch) | |
tree | a171ce52d4f8908aeb9d13770965b9890608f738 /BluetoothImpl.h | |
parent | 4d2339c65548cf553891b049200e6a845de293e9 (diff) | |
download | ble-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.h | 14 |
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; }; |