Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of BLE_API by
Diff: public/DiscoveredCharacteristic.h
- Revision:
- 475:eb7fbcfb0e85
- Parent:
- 473:d10415d0a07d
- Child:
- 477:6883ec08f2dd
--- 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; };