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 467:143ca3152ffa, committed 2015-06-19
- Comitter:
- rgrover1
- Date:
- Fri Jun 19 15:51:59 2015 +0100
- Parent:
- 466:5c2cb68e7c3b
- Child:
- 468:bbf2a395bb8d
- Commit message:
- Synchronized with git rev f13fe428
Author: Rohit Grover
add variants for DiscoveredCharacteristic::setup()
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: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();
