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.
Dependencies: nrf51-sdk
Dependents: microbit-dal microbit-ble-open microbit-dal-eddystone microbit-dal-ble-accelerometer-example ... more
Diff: btle/btle_discovery.h
- Revision:
- 311:5d5abc30e3a8
- Parent:
- 310:4d7ccb8c2a51
- Child:
- 312:d55797e0d632
--- a/btle/btle_discovery.h Fri Jun 19 15:55:30 2015 +0100 +++ b/btle/btle_discovery.h Fri Jun 19 15:55:30 2015 +0100 @@ -24,6 +24,29 @@ class nRFDiscoveredCharacteristic : public DiscoveredCharacteristic { public: + void setup(Gap::Handle_t connectionHandleIn, + Properties_t propsIn, + GattAttribute::Handle_t declHandleIn, + GattAttribute::Handle_t valueHandleIn) { + connHandle = connectionHandleIn; + props = propsIn; + declHandle = declHandleIn; + valueHandle = valueHandleIn; + } + + void setup(Gap::Handle_t connectionHandleIn, + UUID::ShortUUIDBytes_t uuidIn, + Properties_t propsIn, + GattAttribute::Handle_t declHandleIn, + GattAttribute::Handle_t valueHandleIn) { + connHandle = connectionHandleIn; + uuid = uuidIn; + props = propsIn; + declHandle = declHandleIn; + valueHandle = valueHandleIn; + } + +public: /** * Initiate (or continue) a read for the value attribute, optionally at a * given offset. If the Characteristic or Descriptor to be read is longer