BLE_API
Diff: public/DiscoveredCharacteristic.h
- Revision:
- 475:eb7fbcfb0e85
- Parent:
- 473:d10415d0a07d
- Child:
- 477:6883ec08f2dd
diff -r 2a8a453ecd7e -r eb7fbcfb0e85 public/DiscoveredCharacteristic.h --- a/public/DiscoveredCharacteristic.h Fri Jun 19 15:52:00 2015 +0100 +++ b/public/DiscoveredCharacteristic.h Fri Jun 19 15:52:00 2015 +0100 @@ -82,25 +82,6 @@ */ virtual ble_error_t read(uint16_t offset = 0) = 0; -public: - void setup(Properties_t propsIn, - GattAttribute::Handle_t declHandleIn, - GattAttribute::Handle_t valueHandleIn) { - props = propsIn; - declHandle = declHandleIn; - valueHandle = valueHandleIn; - } - - void setup(UUID::ShortUUIDBytes_t uuidIn, - Properties_t propsIn, - GattAttribute::Handle_t declHandleIn, - GattAttribute::Handle_t valueHandleIn) { - uuid = uuidIn; - props = propsIn; - declHandle = declHandleIn; - valueHandle = valueHandleIn; - } - void setupLongUUID(UUID::LongUUIDBytes_t longUUID) { uuid.setupLong(longUUID); } @@ -129,12 +110,15 @@ /* empty */ } -private: +protected: UUID uuid; Properties_t props; GattAttribute::Handle_t declHandle; GattAttribute::Handle_t valueHandle; + Gap::Handle_t connHandle; + +public: static ReadCallback_t onDataReadCallback; };