BLE_API_Tiny_BLE

Dependents:   CSSE4011_BLE_IMU

Fork of BLE_API by Bluetooth Low Energy

Revision:
291:0b66dd15728e
Parent:
290:aafa664ba829
Child:
299:c1e4400af825
diff -r aafa664ba829 -r 0b66dd15728e public/GattAttribute.h
--- a/public/GattAttribute.h	Mon Mar 02 11:50:46 2015 +0000
+++ b/public/GattAttribute.h	Mon Mar 02 11:50:47 2015 +0000
@@ -46,7 +46,7 @@
      */
     /**************************************************************************/
     GattAttribute(const UUID &uuid, uint8_t *valuePtr = NULL, uint16_t initialLen = 0, uint16_t maxLen = 0) :
-        _uuid(uuid), _valuePtr(valuePtr), _initialLen(initialLen), _lenMax(maxLen), _len(initialLen), _handle() {
+        _uuid(uuid), _valuePtr(valuePtr), _initialLen(initialLen), _lenMax(maxLen), _handle() {
         /* empty */
     }
 
@@ -55,7 +55,6 @@
     const UUID &getUUID(void)          const {return _uuid;      }
     uint16_t    getInitialLength(void) const {return _initialLen;}
     uint16_t    getMaxLength(void)     const {return _lenMax;    }
-    uint16_t   *getLengthPtr(void)           {return &_len;      }
     void        setHandle(Handle_t id)       {_handle = id;      }
     uint8_t    *getValuePtr(void)            {return _valuePtr;  }
 
@@ -64,7 +63,6 @@
     uint8_t  *_valuePtr;
     uint16_t  _initialLen;  /* Initial length of the value */
     uint16_t  _lenMax;      /* Maximum length of the value */
-    uint16_t  _len;         /* Current length of the value */
     Handle_t  _handle;
 
 private: