Wang Xinglu / BLE_API

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:52:49 2015 +0100
Parent:
574:213fa3938cc6
Child:
576:d278c4ec1df4
Commit message:
Synchronized with git rev e6c44ac7
Author: Rohit Grover
add copy and default constructors for UUID.

Changed in this revision

public/UUID.h Show annotated file Show diff for this revision Revisions of this file
--- a/public/UUID.h	Fri Jun 19 15:52:49 2015 +0100
+++ b/public/UUID.h	Fri Jun 19 15:52:49 2015 +0100
@@ -77,6 +77,16 @@
         /* empty */
     }
 
+    UUID(const UUID &source) {
+        type      = source.type;
+        shortUUID = source.shortUUID;
+        memcpy(baseUUID, source.baseUUID, LENGTH_OF_LONG_UUID);
+    }
+
+    UUID(void) : type(UUID_TYPE_SHORT), shortUUID(BLE_UUID_UNKNOWN) {
+        /* empty */
+    }
+
 public:
     UUID_Type_t       shortOrLong(void)  const {return type;     }
     const uint8_t    *getBaseUUID(void)  const {