BLE_API_Tiny_BLE

Dependents:   CSSE4011_BLE_IMU

Fork of BLE_API by Bluetooth Low Energy

Revision:
56:537b8e8f5d60
Parent:
53:a1bec483c8e3
Child:
60:de30b62ab8c1
--- a/UUID.h	Thu May 29 08:28:02 2014 +0100
+++ b/UUID.h	Thu May 29 08:57:57 2014 +0100
@@ -37,6 +37,17 @@
     virtual ~UUID(void);
 
 public:
+    uint8_t shortOrLong(void) const {
+        return type;
+    }
+    const uint8_t* getBaseUUID(void) const {
+        return base;
+    }
+    uint16_t get16BitUUID(void) const {
+        return value;
+    }
+
+private:
     uint8_t  type;         // UUID_TYPE_SHORT or UUID_TYPE_LONG
     uint8_t  base[LENGTH_OF_LONG_UUID];     // in case of custom
     uint16_t value;        // 16 bit uuid (byte 2-3 using with base)