diff --git a/public/UUID.h b/public/UUID.h index 6b39fd1..d7acda8 100644 --- a/public/UUID.h +++ b/public/UUID.h @@ -77,6 +77,16 @@ public: /* 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 {