diff options
-rw-r--r-- | apps/ble-read-characteristic.cpp | 1 | ||||
-rw-r--r-- | ble/LinuxBluetooth.cpp | 9 | ||||
-rw-r--r-- | include/ble/Bluetooth.h | 2 |
3 files changed, 0 insertions, 12 deletions
diff --git a/apps/ble-read-characteristic.cpp b/apps/ble-read-characteristic.cpp index a11b0cf..8efcb3b 100644 --- a/apps/ble-read-characteristic.cpp +++ b/apps/ble-read-characteristic.cpp @@ -107,7 +107,6 @@ public: } else { cerr << "Enabling notifications" << endl; cccd->setValue(ByteBuffer::wrapInitialized(BluetoothGattDescriptor::ENABLE_NOTIFICATION_VALUE)); - gatt->setCharacteristicNotification(cccd, true); gatt->write(cccd); cout << "sleeping" << endl; diff --git a/ble/LinuxBluetooth.cpp b/ble/LinuxBluetooth.cpp index cc6516d..99762cb 100644 --- a/ble/LinuxBluetooth.cpp +++ b/ble/LinuxBluetooth.cpp @@ -110,8 +110,6 @@ public: ByteBuffer readValue(const BluetoothGattCharacteristicPtr &c, ByteBuffer &response) override; - void setCharacteristicNotification(const BluetoothGattDescriptorPtr &c, bool enable) override; - private: void connect(); @@ -337,13 +335,6 @@ ByteBuffer LinuxBluetoothGatt::readValue(const BluetoothGattCharacteristicPtr &c return view; } -void LinuxBluetoothGatt::setCharacteristicNotification(const BluetoothGattDescriptorPtr &d, bool enable) { - uint8_t b[mtu]; - ByteBuffer buffer{b, mtu}; - -// AttPdu::makeWrite(buffer, d->getValueHandle()); -} - void LinuxBluetoothGatt::discoverServices() { uint16_t startHandle = 0x0001; diff --git a/include/ble/Bluetooth.h b/include/ble/Bluetooth.h index b0228e5..914dc26 100644 --- a/include/ble/Bluetooth.h +++ b/include/ble/Bluetooth.h @@ -153,8 +153,6 @@ public: virtual ByteBuffer readValue(const BluetoothGattCharacteristicPtr &c, ByteBuffer &response) = 0; - virtual void setCharacteristicNotification(const BluetoothGattDescriptorPtr &c, bool enable) = 0; - virtual void discoverServices() = 0; virtual vector<shared_ptr<BluetoothGattService>> getServices() const = 0; |