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.
Dependents: BLE_ANCS_SDAPI BLE_temperature BLE_HeartRate writable_gatt ... more
Diff: btle/btle_discovery.h
- Revision:
- 311:5d5abc30e3a8
- Parent:
- 310:4d7ccb8c2a51
- Child:
- 312:d55797e0d632
diff -r 4d7ccb8c2a51 -r 5d5abc30e3a8 btle/btle_discovery.h
--- 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

