YUFEI JIANG / BLE_API_Tiny_BLE

Dependents:   CSSE4011_BLE_IMU

Fork of BLE_API by Bluetooth Low Energy

Revision:
57:29d592d8729f
Parent:
55:8f7ca1ae50d7
Child:
65:100b50423049
diff -r 537b8e8f5d60 -r 29d592d8729f GattCharacteristic.h
--- a/GattCharacteristic.h	Thu May 29 08:57:57 2014 +0100
+++ b/GattCharacteristic.h	Thu May 29 09:50:47 2014 +0100
@@ -418,13 +418,32 @@
                        uint8_t  properties = 0);
     virtual ~GattCharacteristic(void);
 
+public:
+    uint16_t getHandle(void) const {
+        return handle;
+    }
+    void setHandle(uint16_t id) {
+        handle = id;
+    }
+    const UUID &getUUID(void) const {
+        return uuid;
+    }
+    uint8_t getProperties(void) const {
+        return properties;
+    }
+    uint16_t getMinLength(void) const {
+        return lenMin;
+    }
+    uint16_t getMaxLength(void) const {
+        return lenMax;
+    }
+
+private:
     UUID     uuid;                  /* Characteristic UUID */
     uint16_t lenMin;                /* Minimum length of the value */
     uint16_t lenMax;                /* Maximum length of the value */
     uint16_t handle;
     uint8_t  properties;
-
-private:
 };
 
 #endif // ifndef __GATT_CHARACTERISTIC_H__