I don't know why this is happening.

Fork of BLE_API by Bluetooth Low Energy

Revision:
118:620d28e7a1ba
Parent:
112:64c88ad45610
Child:
137:4b648181ea6b
--- a/public/GattAttribute.h	Mon Sep 08 17:11:58 2014 +0100
+++ b/public/GattAttribute.h	Mon Sep 22 10:59:09 2014 +0100
@@ -29,7 +29,9 @@
 class GattAttribute
 {
 public:
+    typedef uint16_t Handle_t;
 
+public:
     /**
      *  @brief  Creates a new GattAttribute using the specified
      *          UUID, value length, and inital value
@@ -59,21 +61,26 @@
     }
 
 public:
-    uint16_t getHandle(void) const {
+    Handle_t getHandle(void) const {
         return _handle;
     }
-    void setHandle(uint16_t id) {
+
+    void setHandle(Handle_t id) {
         _handle = id;
     }
+
     const UUID &getUUID(void) const {
         return _uuid;
     }
+
     uint16_t getInitialLength(void) const {
         return _initialLen;
     }
+
     uint16_t getMaxLength(void) const {
         return _lenMax;
     }
+
     uint8_t *getValuePtr(void) {
         return _valuePtr;
     }
@@ -83,7 +90,7 @@
     uint8_t  *_valuePtr;
     uint16_t  _initialLen;  /* Initial length of the value */
     uint16_t  _lenMax;      /* Maximum length of the value */
-    uint16_t  _handle;
+    Handle_t  _handle;
 };
 
 #endif // ifndef __GATT_ATTRIBUTE_H__