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.cpp
- Revision:
- 82:9853676a88e6
- Parent:
- 67:0fac4e99f29b
--- a/GattCharacteristic.cpp Tue Jun 10 13:14:16 2014 +0100
+++ b/GattCharacteristic.cpp Wed Jun 11 08:28:14 2014 +0100
@@ -26,15 +26,14 @@
@note The UUID value must be unique in the service and is normally >1
- @param[in] id
- The 16-bit UUID to use for this characteristic
- @param[in] minLen
+ @param[in] uuid
+ The UUID to use for this characteristic
+ @param[in] initialLen
The min length in bytes of this characteristic's value
@param[in] maxLen
The max length in bytes of this characteristic's value
@param[in] props
- The 8-bit bit field containing the characteristic's
- properties
+ The 8-bit bit field containing the characteristic's properties
@section EXAMPLE
@@ -46,37 +45,8 @@
@endcode
*/
/**************************************************************************/
-GattCharacteristic::GattCharacteristic(uint16_t id,
- uint16_t minLen,
- uint16_t maxLen,
- uint8_t props) :
- uuid(id),
- lenMin(minLen),
- lenMax(maxLen),
- handle(),
- properties(props)
+GattCharacteristic::GattCharacteristic(const UUID &id, uint16_t initialLen, uint16_t maxLen, uint8_t props) :
+ _uuid(id), _lenMin(initialLen), _lenMax(maxLen), _handle(), _properties(props)
{
/* empty */
}
-
-GattCharacteristic::GattCharacteristic(const LongUUID_t longUUID,
- uint16_t minLen,
- uint16_t maxLen,
- uint8_t props) :
- uuid(longUUID),
- lenMin(minLen),
- lenMax(maxLen),
- handle(),
- properties(props)
-{
- /* empty */
-}
-
-/**************************************************************************/
-/*!
- Destructor
-*/
-/**************************************************************************/
-GattCharacteristic::~GattCharacteristic(void)
-{
-}
