High level Bluetooth Low Energy API and radio abstraction layer
Fork of BLE_API by
Revision 69:2fd349295d2c, committed 2014-06-05
- Comitter:
- Rohit Grover
- Date:
- Thu Jun 05 10:36:50 2014 +0100
- Parent:
- 68:dcadab8a56dd
- Child:
- 70:d6c0a4cedf46
- Commit message:
- simplified GattService constructor to take a UUID directly
This removes the duplicate constructors taking differing forms of UUID.
Changed in this revision
GattService.cpp | Show annotated file Show diff for this revision Revisions of this file |
GattService.h | Show annotated file Show diff for this revision Revisions of this file |
--- a/GattService.cpp Thu Jun 05 08:52:20 2014 +0100 +++ b/GattService.cpp Thu Jun 05 10:36:50 2014 +0100 @@ -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) @@ -47,29 +47,6 @@ /**************************************************************************/ /*! - @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 */ /**************************************************************************/
--- a/GattService.h Thu Jun 05 08:52:20 2014 +0100 +++ b/GattService.h Thu Jun 05 10:36:50 2014 +0100 @@ -34,8 +34,7 @@ private: public: - GattService(const LongUUID_t); - GattService(ShortUUID_t); /* 16-bit BLE UUID */ + GattService(UUID uuid); virtual ~GattService(void); UUID primaryServiceID;