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
Revision 575:76fe165fc0b1, committed 2015-06-19
- 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 {
