YUFEI JIANG / BLE_API_Tiny_BLE

Dependents:   CSSE4011_BLE_IMU

Fork of BLE_API by Bluetooth Low Energy

Revision:
87:0e521f983354
Parent:
85:5aa77755c05c
Child:
88:f4d3969e03d4
--- a/GattCharacteristic.h	Wed Jun 11 10:12:54 2014 +0100
+++ b/GattCharacteristic.h	Wed Jun 11 13:52:40 2014 +0100
@@ -271,6 +271,7 @@
     */
     /**************************************************************************/
     typedef enum ble_gatt_char_properties_e {
+        BLE_GATT_CHAR_PROPERTIES_NONE                        = 0x00,
         BLE_GATT_CHAR_PROPERTIES_BROADCAST                   = 0x01, /**< Permits broadcasts of the Characteristic Value using Server Characteristic Configuration Descriptor. */
         BLE_GATT_CHAR_PROPERTIES_READ                        = 0x02, /**< Permits reads of the Characteristic Value. */
         BLE_GATT_CHAR_PROPERTIES_WRITE_WITHOUT_RESPONSE      = 0x04, /**< Permits writes of the Characteristic Value without response. */
@@ -322,7 +323,8 @@
      *  @endcode
     */
     /**************************************************************************/
-    GattCharacteristic(const UUID &uuid, uint8_t *value, uint16_t initialLen = 1, uint16_t maxLen = 1, uint8_t props = 0) :
+    GattCharacteristic(const UUID &uuid, uint8_t *value, uint16_t initialLen = 1, uint16_t maxLen = 1,
+                       uint8_t props = BLE_GATT_CHAR_PROPERTIES_NONE) :
         _uuid(uuid), _value(value), _initialLen(initialLen), _lenMax(maxLen), _handle(), _properties(props) {
         /* empty */
     }