From 60d5440dd3514e71b87948ff5ed30ee38445b8a5 Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Sun, 15 Feb 2015 11:01:46 +0100 Subject: o wip. Test cases! --- Bluetooth.h | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'Bluetooth.h') diff --git a/Bluetooth.h b/Bluetooth.h index a0fd2c6..15ef171 100644 --- a/Bluetooth.h +++ b/Bluetooth.h @@ -114,7 +114,7 @@ namespace trygvis { AttPduType getType(); - static vector* parseReadByGroupType(ByteBuffer &bytes); + static vector parseReadByGroupType(ByteBuffer &bytes); static void makeReadByGroupType(ByteBuffer &bytes, uint16_t startHandle, uint16_t endHandle, uint16_t uuid); @@ -126,14 +126,16 @@ namespace trygvis { class AttributeData { public: - static AttributeData* fromByteBuffer(ByteBuffer &value, uint8_t length); + ~AttributeData(); + + static AttributeData fromByteBuffer(ByteBuffer &value, uint8_t length); const uint16_t handle; + const uint16_t groupEndHandle; const ByteBuffer value; private: - AttributeData(uint16_t handle, ByteBuffer value); - ~AttributeData(); + AttributeData(uint16_t handle, uint16_t groupEndHandle, ByteBuffer value); }; // BluetoothAdapter &getAdapter(int hciDevice); -- cgit v1.2.3