library for BLE_GAP_backpack

Dependencies:   nrf51-sdk

Fork of nRF51822 by Nordic Semiconductor

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