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 15:03:35 2014 +0100
Parent:
92:3781dc6f8c18
Parent:
86:5f429b984bc2
Child:
94:455363a6eb90
Commit message:
merging a cherry pick for improving constructor 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 14:42:08 2014 +0100
+++ b/GattCharacteristic.h	Wed Jun 11 15:03:35 2014 +0100
@@ -321,9 +321,9 @@
      *  GattCharacteristic c = GattCharacteristic( 0x2A19, 2, 2, BLE_GATT_CHAR_PROPERTIES_WRITE );
      *
      *  @endcode
-    */
+     */
     /**************************************************************************/
-    GattCharacteristic(const UUID &uuid, uint8_t *value, uint16_t initialLen = 1, uint16_t maxLen = 1,
+    GattCharacteristic(const UUID &uuid, uint8_t *value = 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) {
         /* empty */