simplified GattService constructor to take a UUID directly

This removes the duplicate constructors taking differing forms of UUID.
This commit is contained in:
Rohit Grover 2014-06-05 10:36:50 +01:00
parent 34dc30209f
commit 0307439450
2 changed files with 3 additions and 27 deletions

View file

@ -36,8 +36,8 @@
@endcode
*/
/**************************************************************************/
GattService::GattService(const LongUUID_t base_uuid) :
primaryServiceID(base_uuid),
GattService::GattService(UUID uuid) :
primaryServiceID(uuid),
characteristicCount(0),
characteristics(),
handle(0)
@ -45,29 +45,6 @@ GattService::GattService(const LongUUID_t base_uuid) :
/* empty */
}
/**************************************************************************/
/*!
@brief Creates a new GattService using the specified 16-bit BLE UUID
@param[in] ble_uuid
The standardised 16-bit (2 byte) BLE UUID to use for this
characteristic
@section EXAMPLE
@code
@endcode
*/
/**************************************************************************/
GattService::GattService(uint16_t ble_uuid) :
primaryServiceID(ble_uuid),
characteristicCount(0),
characteristics(),
handle(0)
{
}
/**************************************************************************/
/*!
@brief Destructor

View file

@ -34,8 +34,7 @@ class GattService
private:
public:
GattService(const LongUUID_t);
GattService(ShortUUID_t); /* 16-bit BLE UUID */
GattService(UUID uuid);
virtual ~GattService(void);
UUID primaryServiceID;