diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2015-02-20 20:45:43 +0100 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2015-02-20 20:45:43 +0100 |
commit | b6f080193d71334e8afea95ae26afbc03c27fac3 (patch) | |
tree | a5abdbb564bc817165ee3803570590520f548170 /Bluetooth.cpp | |
parent | 71167b3c8fb1ce47feb72b9376b899e40ffd3907 (diff) | |
download | ble-toys-b6f080193d71334e8afea95ae26afbc03c27fac3.tar.gz ble-toys-b6f080193d71334e8afea95ae26afbc03c27fac3.tar.bz2 ble-toys-b6f080193d71334e8afea95ae26afbc03c27fac3.tar.xz ble-toys-b6f080193d71334e8afea95ae26afbc03c27fac3.zip |
o Decoding GATT characteristics.
Diffstat (limited to 'Bluetooth.cpp')
-rw-r--r-- | Bluetooth.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/Bluetooth.cpp b/Bluetooth.cpp index e634233..b135282 100644 --- a/Bluetooth.cpp +++ b/Bluetooth.cpp @@ -134,13 +134,12 @@ vector<AttributeData> AttPdu::parseReadByType(ByteBuffer &bytes) { AttributeData AttributeData::fromByteBuffer(ByteBuffer &bytes) { uint16_t handle = bytes.read16le(); - uint16_t groupEndHandle = bytes.read16le(); - return AttributeData(handle, groupEndHandle, bytes.view()); + return AttributeData(handle, bytes.view()); } -AttributeData::AttributeData(uint16_t handle, uint16_t groupEndHandle, ByteBuffer value) : - handle(handle), endGroupHandle(groupEndHandle), value(value) { +AttributeData::AttributeData(uint16_t handle, ByteBuffer value) : + handle(handle), value(value) { } AttributeData::~AttributeData() { |