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 nRF51822 by
Diff: btle/btle_gattc.cpp
- Revision:
- 215:36f6796651ab
- Parent:
- 214:196183e51de3
- Child:
- 216:3443c78324b6
--- a/btle/btle_gattc.cpp Fri Jun 19 15:55:18 2015 +0100
+++ b/btle/btle_gattc.cpp Fri Jun 19 15:55:18 2015 +0100
@@ -52,19 +52,21 @@
DiscoveredCharacteristic() {
/* empty */
}
- DiscoveredCharacteristic(ShortUUIDBytes_t uuidIn, Gap::Handle_t start, Gap::Handle_t end) {
- setup(uuidIn, start, end);
+ DiscoveredCharacteristic(ShortUUIDBytes_t uuidIn, ble_gatt_char_props_t props, Gap::Handle_t declHandle, Gap::Handle_t valueHandle) {
+ setup(uuidIn, props, declHandle, valueHandle);
}
- void setup(ShortUUIDBytes_t uuidIn, Gap::Handle_t start, Gap::Handle_t end) {
+ void setup(ShortUUIDBytes_t uuidIn, ble_gatt_char_props_t propsIn, Gap::Handle_t declHandleIn, Gap::Handle_t valueHandleIn) {
uuid = uuidIn;
- startHandle = start;
- endHandle = end;
+ props = propsIn;
+ declHandle = declHandleIn;
+ valueHandle = valueHandleIn;
}
- ShortUUIDBytes_t uuid; /**< UUID of the service. */
- Gap::Handle_t startHandle; /**< Service Handle Range. */
- Gap::Handle_t endHandle; /**< Service Handle Range. */
+ ShortUUIDBytes_t uuid;
+ ble_gatt_char_props_t props;
+ Gap::Handle_t declHandle; /**< Service Handle Range. */
+ Gap::Handle_t valueHandle; /**< Service Handle Range. */
};
struct DiscoveryStatus_t {
