diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2015-02-12 17:22:59 +0100 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2015-02-12 17:22:59 +0100 |
commit | 041bbe24b39190ac0b624b2709fc38dea17ad0a7 (patch) | |
tree | af09babb7ae7ff1ab6ed4a7973bfccdd1b8d51f9 /Bluetooth.h | |
parent | b55df0b8e46f46fea4d69f98a729cd237d77a6ed (diff) | |
download | ble-toys-041bbe24b39190ac0b624b2709fc38dea17ad0a7.tar.gz ble-toys-041bbe24b39190ac0b624b2709fc38dea17ad0a7.tar.bz2 ble-toys-041bbe24b39190ac0b624b2709fc38dea17ad0a7.tar.xz ble-toys-041bbe24b39190ac0b624b2709fc38dea17ad0a7.zip |
o wip.
Diffstat (limited to 'Bluetooth.h')
-rw-r--r-- | Bluetooth.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Bluetooth.h b/Bluetooth.h index 586ac66..a0fd2c6 100644 --- a/Bluetooth.h +++ b/Bluetooth.h @@ -126,14 +126,14 @@ namespace trygvis { class AttributeData { public: - static AttributeData* fromByteBuffer(ByteBuffer &bytes, uint8_t length); + static AttributeData* fromByteBuffer(ByteBuffer &value, uint8_t length); + + const uint16_t handle; + const ByteBuffer value; private: - AttributeData(uint16_t handle, uint8_t* bytes); + AttributeData(uint16_t handle, ByteBuffer value); ~AttributeData(); - - uint16_t handle; - uint8_t *bytes; }; // BluetoothAdapter &getAdapter(int hciDevice); |