High level Bluetooth Low Energy API and radio abstraction layer

Dependencies:   nRF51822

Dependents:   LinkNode_LIS3DH

Fork of BLE_API by Bluetooth Low Energy

Revision:
101:9566e418a313
Parent:
93:f97a35cc40f8
--- a/GattCharacteristic.h	Fri Jul 04 11:27:20 2014 +0100
+++ b/GattCharacteristic.h	Tue Jul 08 11:12:19 2014 +0100
@@ -306,6 +306,8 @@
      *
      *  @param[in]  uuid
      *              The UUID to use for this characteristic
+     *  @param[in]  valuePtr
+     *              The memory holding the initial value.
      *  @param[in]  initialLen
      *              The min length in bytes of this characteristic's value
      *  @param[in]  maxLen
@@ -323,9 +325,9 @@
      *  @endcode
      */
     /**************************************************************************/
-    GattCharacteristic(const UUID &uuid, uint8_t *value = NULL, uint16_t initialLen = 0, uint16_t maxLen = 0,
+    GattCharacteristic(const UUID &uuid, uint8_t *valuePtr = NULL, uint16_t initialLen = 0, uint16_t maxLen = 0,
                        uint8_t props = BLE_GATT_CHAR_PROPERTIES_NONE) :
-        _uuid(uuid), _value(value), _initialLen(initialLen), _lenMax(maxLen), _handle(), _properties(props) {
+        _uuid(uuid), _valuePtr(valuePtr), _initialLen(initialLen), _lenMax(maxLen), _handle(), _properties(props) {
         /* empty */
     }
 
@@ -349,12 +351,12 @@
         return _lenMax;
     }
     uint8_t *getValuePtr(void) {
-        return _value;
+        return _valuePtr;
     }
 
 private:
     UUID      _uuid;        /* Characteristic UUID */
-    uint8_t  *_value;
+    uint8_t  *_valuePtr;
     uint16_t  _initialLen;  /* Initial length of the value */
     uint16_t  _lenMax;      /* Maximum length of the value */
     uint16_t  _handle;