Compatible with Keewi v1

Fork of BLE_API by Bluetooth Low Energy

Files at this revision

API Documentation at this revision

Comitter:
Rohit Grover
Date:
Wed Jun 11 10:12:54 2014 +0100
Parent:
84:d1903e73a42c
Child:
86:5f429b984bc2
Child:
87:0e521f983354
Commit message:
introduce _value as a member for GattCharacteristic

Changed in this revision

GattCharacteristic.h Show annotated file Show diff for this revision Revisions of this file
--- a/GattCharacteristic.h	Wed Jun 11 08:39:01 2014 +0100
+++ b/GattCharacteristic.h	Wed Jun 11 10:12:54 2014 +0100
@@ -322,8 +322,8 @@
      *  @endcode
     */
     /**************************************************************************/
-    GattCharacteristic(const UUID &uuid, uint16_t initialLen, uint16_t maxLen, uint8_t props) :
-        _uuid(uuid), _initialLen(initialLen), _lenMax(maxLen), _handle(), _properties(props) {
+    GattCharacteristic(const UUID &uuid, uint8_t *value, uint16_t initialLen = 1, uint16_t maxLen = 1, uint8_t props = 0) :
+        _uuid(uuid), _value(value), _initialLen(initialLen), _lenMax(maxLen), _handle(), _properties(props) {
         /* empty */
     }
 
@@ -349,6 +349,7 @@
 
 private:
     UUID     _uuid;        /* Characteristic UUID */
+    uint8_t *_value;
     uint16_t _initialLen;  /* Initial length of the value */
     uint16_t _lenMax;      /* Maximum length of the value */
     uint16_t _handle;