fka mod

Fork of BLE_API by Bluetooth Low Energy

Revision:
467:143ca3152ffa
Parent:
466:5c2cb68e7c3b
Child:
468:bbf2a395bb8d
diff -r 5c2cb68e7c3b -r 143ca3152ffa public/ServiceDiscovery.h
--- a/public/ServiceDiscovery.h	Fri Jun 19 15:51:59 2015 +0100
+++ b/public/ServiceDiscovery.h	Fri Jun 19 15:51:59 2015 +0100
@@ -109,6 +109,14 @@
             uint8_t auth_signed_wr :1; /**< Writing the value with Signed Write Command permitted. */
         };
 
+        void setup(Properties_t            propsIn,
+                   GattAttribute::Handle_t declHandleIn,
+                   GattAttribute::Handle_t valueHandleIn) {
+            props       = propsIn;
+            declHandle  = declHandleIn;
+            valueHandle = valueHandleIn;
+        }
+
         void setup(UUID::ShortUUIDBytes_t  uuidIn,
                    Properties_t            propsIn,
                    GattAttribute::Handle_t declHandleIn,
@@ -119,6 +127,10 @@
             valueHandle = valueHandleIn;
         }
 
+        void setupLongUUID(UUID::LongUUIDBytes_t longUUID) {
+            uuid.setupLong(longUUID);
+        }
+
     public:
         UUID::ShortUUIDBytes_t getShortUUID(void) const {
             return uuid.getShortUUID();