aboutsummaryrefslogtreecommitdiff
path: root/Bluetooth.h
diff options
context:
space:
mode:
Diffstat (limited to 'Bluetooth.h')
-rw-r--r--Bluetooth.h17
1 files changed, 12 insertions, 5 deletions
diff --git a/Bluetooth.h b/Bluetooth.h
index e840f37..4314d8e 100644
--- a/Bluetooth.h
+++ b/Bluetooth.h
@@ -84,7 +84,13 @@ public:
virtual BluetoothGattService &getService() const = 0;
+ virtual uint16_t getHandle() const = 0;
+
virtual const boost::uuids::uuid getUuid() const = 0;
+
+ virtual uint8_t getProperties() const = 0;
+
+ virtual uint16_t getValueHandle() const = 0;
};
class BluetoothGattService {
@@ -100,7 +106,9 @@ public:
virtual uint16_t getEndGroupHandle() const = 0;
- virtual vector<BluetoothGattCharacteristic *>::const_iterator getCharacteristics() const = 0;
+ virtual const vector<BluetoothGattCharacteristic *> getCharacteristics() const = 0;
+
+ virtual void addCharacteristic(BluetoothGattCharacteristic* characteristic) = 0;
};
class BluetoothDevice {
@@ -119,7 +127,7 @@ public:
virtual void discoverServices() = 0;
- virtual vector<BluetoothGattService *>::const_iterator getServices() const = 0;
+ virtual const vector<BluetoothGattService *> getServices() const = 0;
};
class BluetoothAdapter {
@@ -179,11 +187,10 @@ public:
static AttributeData fromByteBuffer(ByteBuffer &value);
const uint16_t handle;
- const uint16_t endGroupHandle;
- const ByteBuffer value;
+ ByteBuffer value;
private:
- AttributeData(uint16_t handle, uint16_t groupEndHandle, ByteBuffer value);
+ AttributeData(uint16_t handle, ByteBuffer value);
};
BluetoothAdapter &getAdapter(int hciDevice);