High level Bluetooth Low Energy API and radio abstraction layer

Dependencies:   nRF51822

Dependents:   LinkNode_LIS3DH

Fork of BLE_API by Bluetooth Low Energy

Files at this revision

API Documentation at this revision

Comitter:
rgrover1
Date:
Fri Jun 19 15:51:58 2015 +0100
Parent:
459:a83b41d87755
Child:
461:a636b8ee72f1
Commit message:
Synchronized with git rev 3ff7472d
Author: Rohit Grover
switch to UUID within DiscoveredCharacteristic

Changed in this revision

public/ServiceDiscovery.h Show annotated file Show diff for this revision Revisions of this file
--- a/public/ServiceDiscovery.h	Fri Jun 19 15:51:58 2015 +0100
+++ b/public/ServiceDiscovery.h	Fri Jun 19 15:51:58 2015 +0100
@@ -106,8 +106,8 @@
         }
 
     public:
-        const UUID::ShortUUIDBytes_t& getShortUUID(void) const {
-            return uuid;
+        UUID::ShortUUIDBytes_t getShortUUID(void) const {
+            return uuid.getShortUUID();
         }
 
         const Properties_t& getProperties(void) const {
@@ -122,12 +122,12 @@
         }
 
     public:
-        DiscoveredCharacteristic() : uuid(0), props(), declHandle(GattAttribute::INVALID_HANDLE), valueHandle(GattAttribute::INVALID_HANDLE) {
+        DiscoveredCharacteristic() : uuid(UUID::ShortUUIDBytes_t(0)), props(), declHandle(GattAttribute::INVALID_HANDLE), valueHandle(GattAttribute::INVALID_HANDLE) {
             /* empty */
         }
 
     private:
-        UUID::ShortUUIDBytes_t  uuid;
+        UUID                    uuid;
         Properties_t            props;
         GattAttribute::Handle_t declHandle;
         GattAttribute::Handle_t valueHandle;