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.
Diff: public/ServiceDiscovery.h
- Revision:
- 467:143ca3152ffa
- Parent:
- 466:5c2cb68e7c3b
- Child:
- 468:bbf2a395bb8d
--- a/public/ServiceDiscovery.h Fri Jun 19 15:51:59 2015 +0100
+++ b/public/ServiceDiscovery.h Fri Jun 19 15:51:59 2015 +0100
@@ -109,6 +109,14 @@
uint8_t auth_signed_wr :1; /**< Writing the value with Signed Write Command permitted. */
};
+ void setup(Properties_t propsIn,
+ GattAttribute::Handle_t declHandleIn,
+ GattAttribute::Handle_t valueHandleIn) {
+ props = propsIn;
+ declHandle = declHandleIn;
+ valueHandle = valueHandleIn;
+ }
+
void setup(UUID::ShortUUIDBytes_t uuidIn,
Properties_t propsIn,
GattAttribute::Handle_t declHandleIn,
@@ -119,6 +127,10 @@
valueHandle = valueHandleIn;
}
+ void setupLongUUID(UUID::LongUUIDBytes_t longUUID) {
+ uuid.setupLong(longUUID);
+ }
+
public:
UUID::ShortUUIDBytes_t getShortUUID(void) const {
return uuid.getShortUUID();