Lightly modified version of the BLE stack, that doesn't bring up a DFUService by default... as we have our own.
Fork of BLE_API by
Diff: public/GattAttribute.h
- Revision:
- 344:241987ac6b8b
- Parent:
- 304:30618b2c9808
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 */