High level Bluetooth Low Energy API and radio abstraction layer
Fork of BLE_API by
Diff: public/UUID.h
- Revision:
- 575:76fe165fc0b1
- Parent:
- 569:a5a6a1681fcf
- Child:
- 603:efa5a21436c1
--- 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 {