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.
Dependents: BLE_PowerBank_HeyFaradey
Fork of BLE_API by
Diff: public/GattAttribute.h
- Revision:
- 344:241987ac6b8b
- Parent:
- 304:30618b2c9808
- Child:
- 418:accfdd7b9d7b
diff -r 4d2576324b62 -r 241987ac6b8b public/GattAttribute.h
--- a/public/GattAttribute.h Thu Apr 30 08:37:21 2015 +0100
+++ b/public/GattAttribute.h Thu Apr 30 08:37:21 2015 +0100
@@ -31,20 +31,19 @@
* @param[in] valuePtr
* The memory holding the initial value.
* @param[in] initialLen
- * The min length in bytes of this characteristic's value
+ * The min length in bytes of this attribute's value
* @param[in] maxLen
- * The max length in bytes of this characteristic's value
+ * The max length in bytes of this attribute's value
*
* @section EXAMPLE
*
* @code
*
- * // UUID = 0x2A19, Min length 2, Max len = 2, Properties = write
- * GattCharacteristic c = GattCharacteristic( 0x2A19, 2, 2, BLE_GATT_CHAR_PROPERTIES_WRITE );
+ * // UUID = 0x2A19, Min length 2, Max len = 2
+ * GattAttribute attr = GattAttribute(0x2A19, &someValue, 2, 2);
*
* @endcode
*/
- /**************************************************************************/
GattAttribute(const UUID &uuid, uint8_t *valuePtr = NULL, uint16_t initialLen = 0, uint16_t maxLen = 0) :
_uuid(uuid), _valuePtr(valuePtr), _initialLen(initialLen), _lenMax(maxLen), _len(initialLen), _handle() {
/* empty */
