Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of BLE_API by
Diff: GattCharacteristic.h
- Revision:
- 87:0e521f983354
- Parent:
- 85:5aa77755c05c
- Child:
- 88:f4d3969e03d4
diff -r 5aa77755c05c -r 0e521f983354 GattCharacteristic.h
--- 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 */
}
