diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2018-11-19 22:09:59 +0100 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2018-11-19 22:09:59 +0100 |
commit | c83b35d6456c8a77e5b8f6a08c9262122c3cbcfc (patch) | |
tree | 68230e76666b5ef2a01471fc9d6951a719856662 /include/ble/Bluetooth.h | |
parent | 52450ed3034b0ba058ea2c9f9baa2d5f78df6a94 (diff) | |
download | ble-toys-c83b35d6456c8a77e5b8f6a08c9262122c3cbcfc.tar.gz ble-toys-c83b35d6456c8a77e5b8f6a08c9262122c3cbcfc.tar.bz2 ble-toys-c83b35d6456c8a77e5b8f6a08c9262122c3cbcfc.tar.xz ble-toys-c83b35d6456c8a77e5b8f6a08c9262122c3cbcfc.zip |
ByteBuffer:
o Reducing silliness, no allocations by ByteBuffer.
o Create StaticByteBuffer as a nice one-liner to create a buffer.
LinuxBluetooth: methods that want a buffer needs to pass it in, ByteBuffer is not allocating anymore.
Diffstat (limited to 'include/ble/Bluetooth.h')
-rw-r--r-- | include/ble/Bluetooth.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/ble/Bluetooth.h b/include/ble/Bluetooth.h index 477bd29..d95d843 100644 --- a/include/ble/Bluetooth.h +++ b/include/ble/Bluetooth.h @@ -129,7 +129,7 @@ public: virtual void writeValue(const BluetoothGattCharacteristicPtr &c, const ByteBuffer &bytes) = 0; - virtual ByteBuffer readValue(const BluetoothGattCharacteristicPtr &c) = 0; + virtual ByteBuffer readValue(const BluetoothGattCharacteristicPtr &c, ByteBuffer& response) = 0; virtual void discoverServices() = 0; |