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 460:f5468aee162d, committed 2015-06-19
- Comitter:
- rgrover1
- Date:
- Fri Jun 19 15:51:58 2015 +0100
- Parent:
- 459:a83b41d87755
- Child:
- 461:a636b8ee72f1
- Commit message:
- Synchronized with git rev 3ff7472d
Author: Rohit Grover
switch to UUID within DiscoveredCharacteristic
Changed in this revision
| public/ServiceDiscovery.h | Show annotated file Show diff for this revision Revisions of this file |
--- a/public/ServiceDiscovery.h Fri Jun 19 15:51:58 2015 +0100
+++ b/public/ServiceDiscovery.h Fri Jun 19 15:51:58 2015 +0100
@@ -106,8 +106,8 @@
}
public:
- const UUID::ShortUUIDBytes_t& getShortUUID(void) const {
- return uuid;
+ UUID::ShortUUIDBytes_t getShortUUID(void) const {
+ return uuid.getShortUUID();
}
const Properties_t& getProperties(void) const {
@@ -122,12 +122,12 @@
}
public:
- DiscoveredCharacteristic() : uuid(0), props(), declHandle(GattAttribute::INVALID_HANDLE), valueHandle(GattAttribute::INVALID_HANDLE) {
+ DiscoveredCharacteristic() : uuid(UUID::ShortUUIDBytes_t(0)), props(), declHandle(GattAttribute::INVALID_HANDLE), valueHandle(GattAttribute::INVALID_HANDLE) {
/* empty */
}
private:
- UUID::ShortUUIDBytes_t uuid;
+ UUID uuid;
Properties_t props;
GattAttribute::Handle_t declHandle;
GattAttribute::Handle_t valueHandle;
