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.
Dependents: mbed_EddystoneURL_Beacon_ssci mbed_EddystoneURL_Beacon_ssci mbed_EddystoneURL_Beacon_ssci
Fork of BLE_API by
Diff: public/ServiceDiscovery.h
- Revision:
- 460:f5468aee162d
- Parent:
- 459:a83b41d87755
- Child:
- 461:a636b8ee72f1
--- 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;