Shuta Nakamae / nRF51822

Fork of nRF51822 by Nordic Semiconductor

Revision:
215:36f6796651ab
Parent:
214:196183e51de3
Child:
216:3443c78324b6
--- a/btle/btle_gattc.cpp	Fri Jun 19 15:55:18 2015 +0100
+++ b/btle/btle_gattc.cpp	Fri Jun 19 15:55:18 2015 +0100
@@ -52,19 +52,21 @@
     DiscoveredCharacteristic() {
         /* empty */
     }
-    DiscoveredCharacteristic(ShortUUIDBytes_t uuidIn, Gap::Handle_t start, Gap::Handle_t end) {
-        setup(uuidIn, start, end);
+    DiscoveredCharacteristic(ShortUUIDBytes_t uuidIn, ble_gatt_char_props_t props, Gap::Handle_t declHandle, Gap::Handle_t valueHandle) {
+        setup(uuidIn, props, declHandle, valueHandle);
     }
 
-    void setup(ShortUUIDBytes_t uuidIn, Gap::Handle_t start, Gap::Handle_t end) {
+    void setup(ShortUUIDBytes_t uuidIn, ble_gatt_char_props_t propsIn, Gap::Handle_t declHandleIn, Gap::Handle_t valueHandleIn) {
         uuid        = uuidIn;
-        startHandle = start;
-        endHandle   = end;
+        props       = propsIn;
+        declHandle  = declHandleIn;
+        valueHandle = valueHandleIn;
     }
 
-    ShortUUIDBytes_t uuid;        /**< UUID of the service. */
-    Gap::Handle_t    startHandle; /**< Service Handle Range. */
-    Gap::Handle_t    endHandle;   /**< Service Handle Range. */
+    ShortUUIDBytes_t      uuid;
+    ble_gatt_char_props_t props;
+    Gap::Handle_t         declHandle; /**< Service Handle Range. */
+    Gap::Handle_t         valueHandle;   /**< Service Handle Range. */
 };
 
 struct DiscoveryStatus_t {