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
Diff: UUID.h
- Revision:
- 56:537b8e8f5d60
- Parent:
- 53:a1bec483c8e3
- Child:
- 60:de30b62ab8c1
--- a/UUID.h Thu May 29 08:28:02 2014 +0100
+++ b/UUID.h Thu May 29 08:57:57 2014 +0100
@@ -37,6 +37,17 @@
virtual ~UUID(void);
public:
+ uint8_t shortOrLong(void) const {
+ return type;
+ }
+ const uint8_t* getBaseUUID(void) const {
+ return base;
+ }
+ uint16_t get16BitUUID(void) const {
+ return value;
+ }
+
+private:
uint8_t type; // UUID_TYPE_SHORT or UUID_TYPE_LONG
uint8_t base[LENGTH_OF_LONG_UUID]; // in case of custom
uint16_t value; // 16 bit uuid (byte 2-3 using with base)
