diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2018-11-19 23:13:50 +0100 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2018-11-19 23:13:50 +0100 |
commit | e8aa2eadf309fbc0c0e1418c6bee482e505fa09b (patch) | |
tree | e93292292834b8d8959301cd8d02b27090e7e0ca /ble/BluetoothImpl.h | |
parent | d6f16958eaa966332b911eb9257b8524c2efd772 (diff) | |
download | ble-toys-e8aa2eadf309fbc0c0e1418c6bee482e505fa09b.tar.gz ble-toys-e8aa2eadf309fbc0c0e1418c6bee482e505fa09b.tar.bz2 ble-toys-e8aa2eadf309fbc0c0e1418c6bee482e505fa09b.tar.xz ble-toys-e8aa2eadf309fbc0c0e1418c6bee482e505fa09b.zip |
ble-read-characteristic: working READ mode, starting on NOTIFY.
Diffstat (limited to 'ble/BluetoothImpl.h')
-rw-r--r-- | ble/BluetoothImpl.h | 31 |
1 files changed, 4 insertions, 27 deletions
diff --git a/ble/BluetoothImpl.h b/ble/BluetoothImpl.h index 802c844..975a011 100644 --- a/ble/BluetoothImpl.h +++ b/ble/BluetoothImpl.h @@ -40,33 +40,6 @@ protected: // Shared classes -namespace detail { - -template<typename T, typename U> -struct constify2; - -template<typename T, typename U> -struct constify2<T *, U *> { - typedef T *type; -}; - -template<typename T, typename U> -struct constify2<T *, U const *> { - typedef T const *type; -}; - -} - -template<typename A, typename B> -class CollectionImpl : public Collection<A> { -public: - explicit CollectionImpl(B &b) : b(b) { - } - -private: - B &b; -}; - class DefaultBluetoothGattCharacteristic : protected LogSetup, public BluetoothGattCharacteristic { public: DefaultBluetoothGattCharacteristic(const BluetoothGattServicePtr &service, uint16_t handle, Uuid uuid, @@ -97,6 +70,10 @@ public: return valueHandle; } + shared_ptr<BluetoothGattDescriptor> getDescriptor(Uuid uuid) const override { + return {}; + } + protected: BluetoothGattServicePtr service; uint16_t handle; |