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:
- 210:e7749aec4203
- Parent:
- 209:d24159a1dad5
- Child:
- 211:bf81b20ede23
--- a/btle/btle_gattc.cpp Fri Jun 19 15:55:17 2015 +0100
+++ b/btle/btle_gattc.cpp Fri Jun 19 15:55:17 2015 +0100
@@ -45,6 +45,28 @@
Gap::Handle_t endHandle; /**< Service Handle Range. */
};
+/**@brief Structure for holding information about the service and the characteristics found during
+ * the discovery process.
+ */
+struct DiscoveredCharacteristic {
+ DiscoveredCharacteristic() {
+ /* empty */
+ }
+ DiscoveredCharacteristic(ShortUUIDBytes_t uuidIn, Gap::Handle_t start, Gap::Handle_t end) {
+ setup(uuidIn, start, end);
+ }
+
+ void setup(ShortUUIDBytes_t uuidIn, Gap::Handle_t start, Gap::Handle_t end) {
+ uuid = uuidIn;
+ startHandle = start;
+ endHandle = end;
+ }
+
+ ShortUUIDBytes_t uuid; /**< UUID of the service. */
+ Gap::Handle_t startHandle; /**< Service Handle Range. */
+ Gap::Handle_t endHandle; /**< Service Handle Range. */
+};
+
struct DiscoveryStatus_t {
DiscoveredService services[BLE_DB_DISCOVERY_MAX_SRV]; /**< Information related to the current service being discovered.
* This is intended for internal use during service discovery. */
