Michael Galis / nRF51822

Fork of nRF51822 by Nordic Semiconductor

Revision:
330:0a8ebc25b57c
Parent:
327:0ea2b4d48212
Child:
332:b054000833d4
--- a/nRFDiscoveredCharacteristic.h	Fri Jun 19 15:55:32 2015 +0100
+++ b/nRFDiscoveredCharacteristic.h	Fri Jun 19 15:55:32 2015 +0100
@@ -19,10 +19,12 @@
 
 class nRFDiscoveredCharacteristic : public DiscoveredCharacteristic {
 public:
-    void setup(Gap::Handle_t           connectionHandleIn,
-               ble_gatt_char_props_t   propsIn,
-               GattAttribute::Handle_t declHandleIn,
-               GattAttribute::Handle_t valueHandleIn) {
+    void setup(GattClient              *gattcIn,
+               Gap::Handle_t            connectionHandleIn,
+               ble_gatt_char_props_t    propsIn,
+               GattAttribute::Handle_t  declHandleIn,
+               GattAttribute::Handle_t  valueHandleIn) {
+        gattc       = gattcIn;
         connHandle  = connectionHandleIn;
         declHandle  = declHandleIn;
         valueHandle = valueHandleIn;
@@ -36,11 +38,13 @@
         props._authSignedWrite = propsIn.auth_signed_wr;
     }
 
-    void setup(Gap::Handle_t connectionHandleIn,
-               UUID::ShortUUIDBytes_t  uuidIn,
-               ble_gatt_char_props_t   propsIn,
-               GattAttribute::Handle_t declHandleIn,
-               GattAttribute::Handle_t valueHandleIn) {
+    void setup(GattClient              *gattcIn,
+               Gap::Handle_t            connectionHandleIn,
+               UUID::ShortUUIDBytes_t   uuidIn,
+               ble_gatt_char_props_t    propsIn,
+               GattAttribute::Handle_t  declHandleIn,
+               GattAttribute::Handle_t  valueHandleIn) {
+        gattc       = gattcIn;
         connHandle  = connectionHandleIn;
         uuid        = uuidIn;
         declHandle  = declHandleIn;