Bizan Nishimura / BLE_API

Dependents:   MiniSteer_BLE

Fork of BLE_API by Bluetooth Low Energy

Files at this revision

API Documentation at this revision

Comitter:
Rohit Grover
Date:
Thu May 29 09:50:47 2014 +0100
Parent:
56:537b8e8f5d60
Child:
58:0642c323b751
Commit message:
make members of GattCharacteristic private

Changed in this revision

GattCharacteristic.h Show annotated file Show diff for this revision Revisions of this file
--- 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__