aboutsummaryrefslogtreecommitdiff
path: root/Bluetooth.h
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2015-02-19 09:09:56 +0100
committerTrygve Laugstøl <trygvis@inamo.no>2015-02-19 09:09:56 +0100
commited2ec4bb64052d3ed8d2357abdc080aea4341811 (patch)
tree5a0484d4b4bde449e16b9370d830a92b16b11c7f /Bluetooth.h
parent5460c461809294bb302be8aa6e80533ec30e28e4 (diff)
downloadble-toys-ed2ec4bb64052d3ed8d2357abdc080aea4341811.tar.gz
ble-toys-ed2ec4bb64052d3ed8d2357abdc080aea4341811.tar.bz2
ble-toys-ed2ec4bb64052d3ed8d2357abdc080aea4341811.tar.xz
ble-toys-ed2ec4bb64052d3ed8d2357abdc080aea4341811.zip
o Successfully reading all characteristics.
Diffstat (limited to 'Bluetooth.h')
-rw-r--r--Bluetooth.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/Bluetooth.h b/Bluetooth.h
index 80e0193..e840f37 100644
--- a/Bluetooth.h
+++ b/Bluetooth.h
@@ -79,6 +79,9 @@ private:
class BluetoothGattCharacteristic {
public:
+ virtual ~BluetoothGattCharacteristic() {
+ };
+
virtual BluetoothGattService &getService() const = 0;
virtual const boost::uuids::uuid getUuid() const = 0;
@@ -86,6 +89,9 @@ public:
class BluetoothGattService {
public:
+ virtual ~BluetoothGattService() {
+ };
+
virtual BluetoothDevice &getDevice() const = 0;
virtual boost::uuids::uuid getUuid() const = 0;
@@ -134,6 +140,7 @@ protected:
enum AttPduType {
ERROR = 0x00,
+ INVALID_HANDLE = 0x01,
READ_BY_TYPE_REQ = 0x08,
READ_BY_TYPE_RES = 0x09,
READ_BY_GROUP_TYPE_REQ = 0x10,