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 459:a83b41d87755, committed 2015-06-19
- Comitter:
- rgrover1
- Date:
- Fri Jun 19 15:51:58 2015 +0100
- Parent:
- 458:5546ebd25359
- Child:
- 460:f5468aee162d
- Commit message:
- Synchronized with git rev ec704356
Author: Rohit Grover
switch to using UUID within DiscoveredService
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
@@ -28,15 +28,15 @@
*/
class DiscoveredService {
public:
- void setup(UUID::ShortUUIDBytes_t uuidIn, GattAttribute::Handle_t startHandleIn, GattAttribute::Handle_t endHandleIn) {
+ void setup(UUID uuidIn, GattAttribute::Handle_t startHandleIn, GattAttribute::Handle_t endHandleIn) {
uuid = uuidIn;
startHandle = startHandleIn;
endHandle = endHandleIn;
}
public:
- const UUID::ShortUUIDBytes_t& getShortUUID(void) const {
- return uuid;
+ UUID::ShortUUIDBytes_t getShortUUID(void) const {
+ return uuid.getShortUUID();
}
const GattAttribute::Handle_t& getStartHandle(void) const {
@@ -47,7 +47,7 @@
}
public:
- DiscoveredService() : uuid(0), startHandle(GattAttribute::INVALID_HANDLE), endHandle(GattAttribute::INVALID_HANDLE) {
+ DiscoveredService() : uuid(UUID::ShortUUIDBytes_t(0)), startHandle(GattAttribute::INVALID_HANDLE), endHandle(GattAttribute::INVALID_HANDLE) {
/* empty */
}
@@ -55,7 +55,7 @@
DiscoveredService(const DiscoveredService &);
private:
- UUID::ShortUUIDBytes_t uuid; /**< UUID of the service. */
+ UUID uuid; /**< UUID of the service. */
GattAttribute::Handle_t startHandle; /**< Service Handle Range. */
GattAttribute::Handle_t endHandle; /**< Service Handle Range. */
};
